{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 载入 `dmind` 插件"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "%load_ext dmind"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 载入 `dmind` 需要的附件"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>/*!\n",
       " * ====================================================\n",
       " * kity - v2.0.4 - 2016-08-22\n",
       " * https://github.com/fex-team/kity\n",
       " * GitHub: https://github.com/fex-team/kity.git \n",
       " * Copyright (c) 2016 Baidu FEX; Licensed BSD\n",
       " * ====================================================\n",
       " */\n",
       "\n",
       "!function(){function use(a){_p.r([moduleMapping[a]])}var _p={r:function(a){if(_p[a].inited)return _p[a].value;if(\"function\"!=typeof _p[a].value)return _p[a].inited=!0,_p[a].value;var b={exports:{}},c=_p[a].value(null,b.exports,b);if(_p[a].inited=!0,_p[a].value=c,void 0!==c)return c;for(var d in b.exports)if(b.exports.hasOwnProperty(d))return _p[a].inited=!0,_p[a].value=b.exports,b.exports}};_p[0]={value:function(a){function b(a){var b=parseFloat(a,10);return/ms/.test(a)?b:/s/.test(a)?1e3*b:/min/.test(a)?60*b*1e3:b}var c=_p.r(8),d=_p.r(1),e=_p.r(11).createClass(\"Animator\",{constructor:function(a,b,c){if(1==arguments.length){var d=arguments[0];this.beginValue=d.beginValue,this.finishValue=d.finishValue,this.setter=d.setter}else this.beginValue=a,this.finishValue=b,this.setter=c},start:function(a,c,d,e,f){2===arguments.length&&\"object\"==typeof c&&(d=c.easing,e=c.delay,f=c.callback,c=c.duration),4===arguments.length&&\"function\"==typeof e&&(f=e,e=0);var g=this.create(a,c,d,f);return e=b(e),e>0?setTimeout(function(){g.play()},e):g.play(),g},create:function(a,f,g,h){var i;return f=f&&b(f)||e.DEFAULT_DURATION,g=g||e.DEFAULT_EASING,\"string\"==typeof g&&(g=d[g]),i=new c(this,a,f,g),\"function\"==typeof h&&i.on(\"finish\",h),i},reverse:function(){return new e(this.finishValue,this.beginValue,this.setter)}});e.DEFAULT_DURATION=300,e.DEFAULT_EASING=\"linear\";var f=_p.r(61);return _p.r(11).extendClass(f,{animate:function(a,b,c,d,e){function f(){g.shift(),g.length&&setTimeout(g[0].t.play.bind(g[0].t),g[0].d)}var g=this._KityAnimateQueue=this._KityAnimateQueue||[],h=a.create(this,b,c,e);return h.on(\"finish\",f),g.push({t:h,d:d}),1==g.length&&setTimeout(h.play.bind(h),d),this},timeline:function(){return this._KityAnimateQueue[0].t},stop:function(){var a=this._KityAnimateQueue;if(a)for(;a.length;)a.shift().t.stop();return this}}),e}},_p[1]={value:function(a,b,c){var d={linear:function(a,b,c,d){return c*(a/d)+b},swing:function(a,b,c,e){return d.easeOutQuad(a,b,c,e)},ease:function(a,b,c,e){return d.easeInOutCubic(a,b,c,e)},easeInQuad:function(a,b,c,d){return c*(a/=d)*a+b},easeOutQuad:function(a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOutQuad:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},easeInCubic:function(a,b,c,d){return c*(a/=d)*a*a+b},easeOutCubic:function(a,b,c,d){return c*((a=a/d-1)*a*a+1)+b},easeInOutCubic:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},easeInQuart:function(a,b,c,d){return c*(a/=d)*a*a*a+b},easeOutQuart:function(a,b,c,d){return-c*((a=a/d-1)*a*a*a-1)+b},easeInOutQuart:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeOutQuint:function(a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},easeInOutQuint:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(a,b,c,d){return-c*Math.cos(a/d*(Math.PI/2))+c+b},easeOutSine:function(a,b,c,d){return c*Math.sin(a/d*(Math.PI/2))+b},easeInOutSine:function(a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b},easeInExpo:function(a,b,c,d){return 0===a?b:c*Math.pow(2,10*(a/d-1))+b},easeOutExpo:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeInOutExpo:function(a,b,c,d){return 0===a?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(a,b,c,d){return-c*(Math.sqrt(1-(a/=d)*a)-1)+b},easeOutCirc:function(a,b,c,d){return c*Math.sqrt(1-(a=a/d-1)*a)+b},easeInOutCirc:function(a,b,c,d){return(a/=d/2)<1?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(a,b,c,d){var e=1.70158,f=0,g=c;return 0===a?b:1==(a/=d)?b+c:(f||(f=.3*d),g<Math.abs(c)?(g=c,e=f/4):e=f/(2*Math.PI)*Math.asin(c/g),-(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*(2*Math.PI)/f))+b)},easeOutElastic:function(a,b,c,d){var e=1.70158,f=0,g=c;return 0===a?b:1==(a/=d)?b+c:(f||(f=.3*d),g<Math.abs(c)?(g=c,e=f/4):e=f/(2*Math.PI)*Math.asin(c/g),g*Math.pow(2,-10*a)*Math.sin((a*d-e)*(2*Math.PI)/f)+c+b)},easeInOutElastic:function(a,b,c,d){var e=1.70158,f=0,g=c;if(0===a)return b;if(2==(a/=d/2))return b+c;if(f||(f=d*(.3*1.5)),g<Math.abs(c)){g=c;var e=f/4}else var e=f/(2*Math.PI)*Math.asin(c/g);return 1>a?-.5*(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*(2*Math.PI)/f))+b:g*Math.pow(2,-10*(a-=1))*Math.sin((a*d-e)*(2*Math.PI)/f)*.5+c+b},easeInBack:function(a,b,c,d,e){return void 0==e&&(e=1.70158),c*(a/=d)*a*((e+1)*a-e)+b},easeOutBack:function(a,b,c,d,e){return void 0==e&&(e=1.70158),c*((a=a/d-1)*a*((e+1)*a+e)+1)+b},easeInOutBack:function(a,b,c,d,e){return void 0==e&&(e=1.70158),(a/=d/2)<1?c/2*(a*a*(((e*=1.525)+1)*a-e))+b:c/2*((a-=2)*a*(((e*=1.525)+1)*a+e)+2)+b},easeInBounce:function(a,b,c,e){return c-d.easeOutBounce(e-a,0,c,e)+b},easeOutBounce:function(a,b,c,d){return(a/=d)<1/2.75?c*(7.5625*a*a)+b:2/2.75>a?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:2.5/2.75>a?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},easeInOutBounce:function(a,b,c,e){return e/2>a?.5*d.easeInBounce(2*a,0,c,e)+b:.5*d.easeOutBounce(2*a-e,0,c,e)+.5*c+b}};return d}},_p[2]={value:function(a,b){function c(a){1===l.push(a)&&(i=j(d))}function d(){var a=l;for(l=[];a.length;)h(a.pop());i=0}function e(a){var b=g(a);return c(b),b}function f(a){var b=l.indexOf(a);~b&&l.splice(b,1),0===l.length&&k(i)}function g(a){var b={index:0,time:+new Date,elapsed:0,action:a,next:function(){c(b)}};return b}function h(a){var b=+new Date,c=b-a.time;c>200&&(c=1e3/60),a.dur=c,a.elapsed+=c,a.time=b,a.action.call(null,a),a.index++}var i,j=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return setTimeout(a,1e3/60)},k=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.clearTimeout,l=[];b.requestFrame=e,b.releaseFrame=f}},_p[3]={value:function(a){var b=_p.r(0),c=_p.r(35),d=_p.r(47),e=_p.r(61),f=_p.r(11).createClass(\"MotionAnimator\",{base:b,constructor:function(a,b){var e=this;this.callBase({beginValue:0,finishValue:1,setter:function(a,b){var f=e.motionPath instanceof d?e.motionPath.getPathData():e.motionPath,g=c.pointAtPath(f,b);a.setTranslate(g.x,g.y),this.doRotate&&a.setRotate(g.tan.getAngle())}}),this.doRotate=b,this.motionPath=a}});return _p.r(11).extendClass(e,{motion:function(a,b,c,d,e){return this.animate(new f(a),b,c,d,e)}}),f}},_p[4]={value:function(a){var b=_p.r(0),c=_p.r(11).createClass(\"OpacityAnimator\",{base:b,constructor:function(a){this.callBase({beginValue:function(a){return a.getOpacity()},finishValue:a,setter:function(a,b){a.setOpacity(b)}})}}),d=_p.r(61);return _p.r(11).extendClass(d,{fxOpacity:function(a,b,d,e,f){return this.animate(new c(a),b,d,e,f)},fadeTo:function(){return this.fxOpacity.apply(this,arguments)},fadeIn:function(){return this.fxOpacity.apply(this,[1].concat([].slice.call(arguments)))},fadeOut:function(){return this.fxOpacity.apply(this,[0].concat([].slice.call(arguments)))}}),c}},_p[5]={value:function(a){var b=_p.r(0),c=_p.r(35),d=_p.r(11).createClass(\"OpacityAnimator\",{base:b,constructor:function(a){this.callBase({beginValue:function(a){return this.beginPath=a.getPathData(),0},finishValue:1,setter:function(b,d){b.setPathData(c.pathTween(this.beginPath,a,d))}})}}),e=_p.r(47);return _p.r(11).extendClass(e,{fxPath:function(a,b,c,e,f){return this.animate(new d(a),b,c,e,f)}}),d}},_p[6]={value:function(a){var b=_p.r(0),c=_p.r(11).createClass(\"RotateAnimator\",{base:b,constructor:function(a){this.callBase({beginValue:0,finishValue:a,setter:function(a,b,c){var d=c.getDelta();a.rotate(d)}})}}),d=_p.r(61);return _p.r(11).extendClass(d,{fxRotate:function(a,b,d,e,f){return this.animate(new c(a),b,d,e,f)}}),c}},_p[7]={value:function(a){var b=_p.r(0),c=_p.r(11).createClass(\"ScaleAnimator\",{base:b,constructor:function(a,b){this.callBase({beginValue:0,finishValue:1,setter:function(c,d,e){var f=e.getDelta(),g=Math.pow(a,f),h=Math.pow(b,f);c.scale(h,g)}})}}),d=_p.r(61);return _p.r(11).extendClass(d,{fxScale:function(a,b,d,e,f,g){return this.animate(new c(a,b),d,e,f,g)}}),c}},_p[8]={value:function(a){function b(a,b,c){return f.paralle(a,b,function(a,b){return a+(b-a)*c})}function c(a,b){return f.paralle(a,b,function(a,b){return b-a})}function d(a,b,c){this.timeline=a,this.target=a.target,this.type=b;for(var d in c)c.hasOwnProperty(d)&&(this[d]=c[d])}var e=_p.r(34),f=_p.r(12),g=_p.r(2),h=_p.r(11).createClass(\"Timeline\",{mixins:[e],constructor:function(a,b,c,d){this.callMixin(),this.target=b,this.time=0,this.duration=c,this.easing=d,this.animator=a,this.beginValue=a.beginValue,this.finishValue=a.finishValue,this.setter=a.setter,this.status=\"ready\"},nextFrame:function(a){\"playing\"==this.status&&(this.time+=a.dur,this.setValue(this.getValue()),this.time>=this.duration&&this.timeUp(),a.next())},getPlayTime:function(){return this.rollbacking?this.duration-this.time:this.time},getTimeProportion:function(){return this.getPlayTime()/this.duration},getValueProportion:function(){return this.easing(this.getPlayTime(),0,1,this.duration)},getValue:function(){var a=this.beginValue,c=this.finishValue,d=this.getValueProportion();return b(a,c,d)},setValue:function(a){this.lastValue=this.currentValue,this.currentValue=a,this.setter.call(this.target,this.target,a,this)},getDelta:function(){return this.lastValue=void 0===this.lastValue?this.beginValue:this.lastValue,c(this.lastValue,this.currentValue)},play:function(){var a=this.status;switch(this.status=\"playing\",a){case\"ready\":f.isFunction(this.beginValue)&&(this.beginValue=this.beginValue.call(this.target,this.target)),f.isFunction(this.finishValue)&&(this.finishValue=this.finishValue.call(this.target,this.target)),this.time=0,this.setValue(this.beginValue),this.frame=g.requestFrame(this.nextFrame.bind(this));break;case\"finished\":case\"stoped\":this.time=0,this.frame=g.requestFrame(this.nextFrame.bind(this));break;case\"paused\":this.frame.next()}return this.fire(\"play\",new d(this,\"play\",{lastStatus:a})),this},pause:function(){return this.status=\"paused\",this.fire(\"pause\",new d(this,\"pause\")),g.releaseFrame(this.frame),this},stop:function(){return this.status=\"stoped\",this.setValue(this.finishValue),this.rollbacking=!1,this.fire(\"stop\",new d(this,\"stop\")),g.releaseFrame(this.frame),this},timeUp:function(){this.repeatOption?(this.time=0,this.rollback?this.rollbacking?(this.decreaseRepeat(),this.rollbacking=!1):(this.rollbacking=!0,this.fire(\"rollback\",new d(this,\"rollback\"))):this.decreaseRepeat(),this.repeatOption?this.fire(\"repeat\",new d(this,\"repeat\")):this.finish()):this.finish()},finish:function(){this.setValue(this.finishValue),this.status=\"finished\",this.fire(\"finish\",new d(this,\"finish\")),g.releaseFrame(this.frame)},decreaseRepeat:function(){this.repeatOption!==!0&&this.repeatOption--},repeat:function(a,b){return this.repeatOption=a,this.rollback=b,this}});return h.requestFrame=g.requestFrame,h.releaseFrame=g.releaseFrame,h}},_p[9]={value:function(a){var b=_p.r(0),c=_p.r(11).createClass(\"TranslateAnimator\",{base:b,constructor:function(a,b){this.callBase({x:0,y:0},{x:a,y:b},function(a,b,c){var d=c.getDelta();a.translate(d.x,d.y)})}}),d=_p.r(61);return _p.r(11).extendClass(d,{fxTranslate:function(a,b,d,e,f,g){return this.animate(new c(a,b),d,e,f,g)}}),c}},_p[10]={value:function(){var a=function(){var a,b=navigator.userAgent.toLowerCase(),c=window.opera;a={platform:function(a){var b={win32:\"Win\",macintel:\"Mac\"};return b[a.platform.toLowerCase()]||\"Lux\"}(navigator),lb:function(a){return~a.indexOf(\"lbbrowser\")?~a.indexOf(\"msie\")?\"ie\":\"chrome\":!1}(b),sg:/se[\\s\\S]+metasr/.test(b),bd:!!~b.indexOf(\"bidubrowser\"),edge:!!~b.indexOf(\"edge\"),chrome:!1,opera:!!c&&c.version,webkit:b.indexOf(\" applewebkit/\")>-1,mac:b.indexOf(\"macintosh\")>-1},a.ie=!a.lb&&/(msie\\s|trident.*rv:)([\\w.]+)/.test(b),a.gecko=\"Gecko\"==navigator.product&&!a.webkit&&!a.opera&&!a.ie;var d=0;if(a.ie&&(d=1*(b.match(/(msie\\s|trident.*rv:)([\\w.]+)/)[2]||0),a.ie11Compat=11==document.documentMode,a.ie9Compat=9==document.documentMode),a.gecko){var e=b.match(/rv:([\\d\\.]+)/);e&&(e=e[1].split(\".\"),d=1e4*e[0]+100*(e[1]||0)+1*(e[2]||0))}return!/chrome\\/(\\d+\\.\\d)/i.test(b)||a.bd||a.opera||a.lb||a.sg||a.edge||(a.chrome=+RegExp.$1),/(\\d+\\.\\d)?(?:\\.\\d)?\\s+safari\\/?(\\d+\\.\\d+)?/i.test(b)&&!/chrome/i.test(b)&&(a.safari=+(RegExp.$1||RegExp.$2)),a.opera&&(d=parseFloat(c.version())),a.webkit&&(d=parseFloat(b.match(/ applewebkit\\/(\\d+)/)[1])),a.bd&&(d=parseFloat(b.match(/bidubrowser\\/(\\d+)/)[1])),a.opera&&(d=parseFloat(b.match(/opr\\/(\\d+)/)[1])),a.edge&&(d=parseFloat(b.match(/edge\\/(\\d+)/)[1])),a.version=d,a.isCompatible=!a.mobile&&(a.ie&&d>=6||a.gecko&&d>=10801||a.opera&&d>=9.5||a.air&&d>=1||a.webkit&&d>=522||!1),a}();return a}},_p[11]={value:function(require,exports){function Class(){}function checkBaseConstructorCall(a,b){var c=a.toString();if(!/this\\.callBase/.test(c))throw new Error(b+\" : 类构造函数没有调用父类的构造函数！为了安全，请调用父类的构造函数\")}function inherit(constructor,BaseClass,classname){var KityClass=eval(\"(function \"+classname+\"( __inherit__flag ) {if( __inherit__flag != KITY_INHERIT_FLAG ) {KityClass.__KityConstructor.apply(this, arguments);}this.__KityClassName = KityClass.__KityClassName;})\");KityClass.__KityConstructor=constructor,KityClass.prototype=new BaseClass(KITY_INHERIT_FLAG);for(var methodName in BaseClass.prototype)BaseClass.prototype.hasOwnProperty(methodName)&&0!==methodName.indexOf(\"__Kity\")&&(KityClass.prototype[methodName]=BaseClass.prototype[methodName]);return KityClass.prototype.constructor=KityClass,KityClass}function mixin(a,b){if(!1==b instanceof Array)return a;var c,d,e,f=b.length;for(a.__KityMixins={constructor:[]},c=0;f>c;c++){d=b[c].prototype;for(e in d)!1!==d.hasOwnProperty(e)&&0!==e.indexOf(\"__Kity\")&&(\"constructor\"===e?a.__KityMixins.constructor.push(d[e]):a.prototype[e]=a.__KityMixins[e]=d[e])}return a}function extend(a,b){b.__KityClassName&&(b=b.prototype);for(var c in b)if(b.hasOwnProperty(c)&&c.indexOf(\"__Kity\")&&\"constructor\"!=c){var d=a.prototype[c]=b[c];d.__KityMethodClass=a,d.__KityMethodName=c}return a}exports.Class=Class,Class.__KityClassName=\"Class\",Class.prototype.base=function(a){var b=arguments.callee.caller,c=b.__KityMethodClass.__KityBaseClass.prototype[a];return c.apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callBase=function(){var a=arguments.callee.caller,b=a.__KityMethodClass.__KityBaseClass.prototype[a.__KityMethodName];return b.apply(this,arguments)},Class.prototype.mixin=function(a){var b=arguments.callee.caller,c=b.__KityMethodClass.__KityMixins;if(!c)return this;var d=c[a];return d.apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callMixin=function(){var a=arguments.callee.caller,b=a.__KityMethodName,c=a.__KityMethodClass.__KityMixins;if(!c)return this;var d=c[b];if(\"constructor\"==b){for(var e=0,f=d.length;f>e;e++)d[e].call(this);return this}return d.apply(this,arguments)},Class.prototype.pipe=function(a){return\"function\"==typeof a&&a.call(this,this),this},Class.prototype.getType=function(){return this.__KityClassName},Class.prototype.getClass=function(){return this.constructor};var KITY_INHERIT_FLAG=\"__KITY_INHERIT_FLAG_\"+ +new Date;exports.createClass=function(a,b){var c,d,e;return 1===arguments.length&&(b=arguments[0],a=\"AnonymousClass\"),e=b.base||Class,b.hasOwnProperty(\"constructor\")?(c=b.constructor,e!=Class&&checkBaseConstructorCall(c,a)):c=function(){this.callBase.apply(this,arguments),this.callMixin.apply(this,arguments)},d=inherit(c,e,a),d=mixin(d,b.mixins),d.__KityClassName=c.__KityClassName=a,d.__KityBaseClass=c.__KityBaseClass=e,d.__KityMethodName=c.__KityMethodName=\"constructor\",d.__KityMethodClass=c.__KityMethodClass=d,delete b.mixins,delete b.constructor,delete b.base,d=extend(d,b)},exports.extendClass=extend}},_p[12]={value:function(){var a={each:function(a,b,c){if(null!==a)if(a.length===+a.length){for(var d=0,e=a.length;e>d;d++)if(b.call(c,a[d],d,a)===!1)return!1}else for(var f in a)if(a.hasOwnProperty(f)&&b.call(c,a[f],f,a)===!1)return!1},extend:function(a){for(var b=arguments,c=this.isBoolean(b[b.length-1])?b[b.length-1]:!1,d=this.isBoolean(b[b.length-1])?b.length-1:b.length,e=1;d>e;e++){var f=b[e];for(var g in f)c&&a.hasOwnProperty(g)||(a[g]=f[g])}return a},deepExtend:function(a,b){for(var c=arguments,d=this.isBoolean(c[c.length-1])?c[c.length-1]:!1,e=this.isBoolean(c[c.length-1])?c.length-1:c.length,f=1;e>f;f++){var g=c[f];for(var h in g)d&&a.hasOwnProperty(h)||(this.isObject(a[h])&&this.isObject(g[h])?this.deepExtend(a[h],g[h],d):a[h]=g[h])}return a},clone:function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},copy:function(a){return\"object\"!=typeof a?a:\"function\"==typeof a?null:JSON.parse(JSON.stringify(a))},queryPath:function(a,b){for(var c=a.split(\".\"),d=0,e=b,f=c.length;f>d;){if(!(c[d]in e))return void 0;if(e=e[c[d]],d++,d>=f||void 0===e)return e}},getValue:function(a,b){return void 0!==a?a:b},flatten:function(b){var c,d=[],e=b.length;for(c=0;e>c;c++)b[c]instanceof Array?d=d.concat(a.flatten(b[c])):d.push(b[c]);return d},paralle:function(b,c,d){var e,f,g,h;if(b instanceof Array){for(h=[],f=0;f<b.length;f++)h.push(a.paralle(b[f],c[f],d));return h}if(b instanceof Object){if(e=b.getClass&&b.getClass(),e&&e.parse)b=b.valueOf(),c=c.valueOf(),h=a.paralle(b,c,d),h=e.parse(h);else{h={};for(g in b)b.hasOwnProperty(g)&&c.hasOwnProperty(g)&&(h[g]=a.paralle(b[g],c[g],d))}return h}return!1===isNaN(parseFloat(b))?d(b,c):h},parallelize:function(b){return function(c,d){return a.paralle(c,d,b)}}};return a.each([\"String\",\"Function\",\"Array\",\"Number\",\"RegExp\",\"Object\",\"Boolean\"],function(b){a[\"is\"+b]=function(a){return Object.prototype.toString.apply(a)==\"[object \"+b+\"]\"}}),a}},_p[13]={value:function(a,b,c){c.exports=window.kity=_p.r(77)}},_p[14]={value:function(a,b,c){var d=_p.r(17),e=_p.r(12),f=_p.r(11).createClass(\"ColorMatrixEffect\",{base:d,constructor:function(a,b){this.callBase(d.NAME_COLOR_MATRIX),this.set(\"type\",e.getValue(a,f.TYPE_MATRIX)),this.set(\"in\",e.getValue(b,d.INPUT_SOURCE_GRAPHIC))}});return e.extend(f,{TYPE_MATRIX:\"matrix\",TYPE_SATURATE:\"saturate\",TYPE_HUE_ROTATE:\"hueRotate\",TYPE_LUMINANCE_TO_ALPHA:\"luminanceToAlpha\",MATRIX_ORIGINAL:\"10000010000010000010\".split(\"\").join(\" \"),MATRIX_EMPTY:\"00000000000000000000\".split(\"\").join(\" \")}),f}},_p[15]={value:function(a,b,c){var d=_p.r(17),e=_p.r(12),f=_p.r(11).createClass(\"CompositeEffect\",{base:d,constructor:function(a,b,c){this.callBase(d.NAME_COMPOSITE),this.set(\"operator\",e.getValue(a,f.OPERATOR_OVER)),b&&this.set(\"in\",b),c&&this.set(\"in2\",c)}});return e.extend(f,{OPERATOR_OVER:\"over\",OPERATOR_IN:\"in\",OPERATOR_OUT:\"out\",OPERATOR_ATOP:\"atop\",OPERATOR_XOR:\"xor\",OPERATOR_ARITHMETIC:\"arithmetic\"}),f}},_p[16]={value:function(a,b,c){var d=_p.r(17),e=_p.r(12),f=_p.r(11).createClass(\"ConvolveMatrixEffect\",{base:d,constructor:function(a,b){this.callBase(d.NAME_CONVOLVE_MATRIX),this.set(\"edgeMode\",e.getValue(a,f.MODE_DUPLICATE)),this.set(\"in\",e.getValue(b,d.INPUT_SOURCE_GRAPHIC))}});return e.extend(f,{MODE_DUPLICATE:\"duplicate\",MODE_WRAP:\"wrap\",MODE_NONE:\"none\"}),f}},_p[17]={value:function(a,b,c){var d=_p.r(68),e=_p.r(11).createClass(\"Effect\",{constructor:function(a){this.node=d.createNode(a)},getId:function(){return this.node.id},setId:function(a){return this.node.id=a,this},set:function(a,b){return this.node.setAttribute(a,b),this},get:function(a){return this.node.getAttribute(a)},getNode:function(){return this.node},toString:function(){return this.node.getAttribute(\"result\")||\"\"}});return _p.r(12).extend(e,{NAME_GAUSSIAN_BLUR:\"feGaussianBlur\",NAME_OFFSET:\"feOffset\",NAME_COMPOSITE:\"feComposite\",NAME_COLOR_MATRIX:\"feColorMatrix\",NAME_CONVOLVE_MATRIX:\"feConvolveMatrix\",INPUT_SOURCE_GRAPHIC:\"SourceGraphic\",INPUT_SOURCE_ALPHA:\"SourceAlpha\",INPUT_BACKGROUND_IMAGE:\"BackgroundImage\",INPUT_BACKGROUND_ALPHA:\"BackgroundAlpha\",INPUT_FILL_PAINT:\"FillPaint\",INPUT_STROKE_PAINT:\"StrokePaint\"}),e}},_p[18]={value:function(a,b,c){var d=_p.r(17),e=_p.r(12);return _p.r(11).createClass(\"GaussianblurEffect\",{base:d,constructor:function(a,b){this.callBase(d.NAME_GAUSSIAN_BLUR),this.set(\"stdDeviation\",e.getValue(a,1)),this.set(\"in\",e.getValue(b,d.INPUT_SOURCE_GRAPHIC))}})}},_p[19]={value:function(a,b,c){var d=_p.r(17),e=_p.r(12);return _p.r(11).createClass(\"OffsetEffect\",{base:d,constructor:function(a,b,c){this.callBase(d.NAME_OFFSET),this.set(\"dx\",e.getValue(a,0)),this.set(\"dy\",e.getValue(b,0)),this.set(\"in\",e.getValue(c,d.INPUT_SOURCE_GRAPHIC))}})}},_p[20]={value:function(a){return _p.r(11).createClass(\"EffectContainer\",{base:_p.r(30),addEffect:function(a,b){return this.addItem.apply(this,arguments)},prependEffect:function(){return this.prependItem.apply(this,arguments)},appendEffect:function(){return this.appendItem.apply(this,arguments)},removeEffect:function(a){return this.removeItem.apply(this,arguments)},addEffects:function(){return this.addItems.apply(this,arguments)},setEffects:function(){return this.setItems.apply(this,arguments)},getEffect:function(){return this.getItem.apply(this,arguments)},getEffects:function(){return this.getItems.apply(this,arguments)},getFirstEffect:function(){return this.getFirstItem.apply(this,arguments)},getLastEffect:function(){return this.getLastItem.apply(this,arguments)},handleAdd:function(a,b){var c=this.getEffects().length,d=this.getItem(b+1);return c===b+1?void this.node.appendChild(a.getNode()):void this.node.insertBefore(a.getNode(),d.getNode())}})}},_p[21]={value:function(a,b,c){var d=_p.r(68),e=_p.r(11),f=e.createClass(\"Filter\",{mixins:[_p.r(20)],constructor:function(a,b,c,e){this.node=d.createNode(\"filter\"),void 0!==a&&this.set(\"x\",a),void 0!==b&&this.set(\"y\",b),void 0!==c&&this.set(\"width\",c),void 0!==e&&this.set(\"height\",e)},getId:function(){return this.id},setId:function(a){return this.node.id=a,this},set:function(a,b){return this.node.setAttribute(a,b),this},get:function(a){return this.node.getAttribute(a)},getNode:function(){return this.node}}),g=_p.r(61);return e.extendClass(g,{applyFilter:function(a){var b=a.get(\"id\");return b&&this.node.setAttribute(\"filter\",\"url(#\"+b+\")\"),this}}),f}},_p[22]={value:function(a,b,c){var d=_p.r(18);return _p.r(11).createClass(\"GaussianblurFilter\",{base:_p.r(21),constructor:function(a){this.callBase(),this.addEffect(new d(a))}})}},_p[23]={value:function(a,b,c){var d=_p.r(18),e=_p.r(17),f=_p.r(14),g=_p.r(29),h=_p.r(12),i=_p.r(15),j=_p.r(19);return _p.r(11).createClass(\"ProjectionFilter\",{base:_p.r(21),constructor:function(a,b,c){this.callBase(),this.gaussianblurEffect=new d(a,e.INPUT_SOURCE_ALPHA),this.gaussianblurEffect.set(\"result\",\"gaussianblur\"),this.addEffect(this.gaussianblurEffect),this.offsetEffect=new j(b,c,this.gaussianblurEffect),this.offsetEffect.set(\"result\",\"offsetBlur\"),this.addEffect(this.offsetEffect),this.colorMatrixEffect=new f(f.TYPE_MATRIX,this.offsetEffect),this.colorMatrixEffect.set(\"values\",f.MATRIX_ORIGINAL),this.colorMatrixEffect.set(\"result\",\"colorOffsetBlur\"),this.addEffect(this.colorMatrixEffect),this.compositeEffect=new i(i.OPERATOR_OVER,e.INPUT_SOURCE_GRAPHIC,this.colorMatrixEffect),this.addEffect(this.compositeEffect)},setColor:function(a){var b=null,c=[];if(h.isString(a)&&(a=g.parse(a)),!a)return this;b=f.MATRIX_EMPTY.split(\" \"),c.push(a.get(\"r\")),c.push(a.get(\"g\")),c.push(a.get(\"b\"));for(var d=0,e=c.length;e>d;d++)b[5*d+3]=c[d]/255;return b[18]=a.get(\"a\"),this.colorMatrixEffect.set(\"values\",b.join(\" \")),this},setOpacity:function(a){var b=this.colorMatrixEffect.get(\"values\").split(\" \");return b[18]=a,this.colorMatrixEffect.set(\"values\",b.join(\" \")),this},setOffset:function(a,b){this.setOffsetX(a),this.setOffsetY(b)},setOffsetX:function(a){this.offsetEffect.set(\"dx\",a)},setOffsetY:function(a){this.offsetEffect.set(\"dy\",a)},setDeviation:function(a){this.gaussianblurEffect.set(\"stdDeviation\",a)}})}},_p[24]={value:function(a,b,c){return _p.r(11).createClass(\"Bezier\",{mixins:[_p.r(52)],base:_p.r(47),constructor:function(a){this.callBase(),a=a||[],this.changeable=!0,this.setBezierPoints(a)},getBezierPoints:function(){return this.getPoints()},setBezierPoints:function(a){return this.setPoints(a)},onContainerChanged:function(){this.changeable&&this.update()},update:function(){var a=null,b=this.getBezierPoints();if(!(b.length<2)){a=this.getDrawer(),a.clear();var c=b[0].getVertex(),d=null,e=null;a.moveTo(c.x,c.y);for(var f=1,g=b.length;g>f;f++)c=b[f].getVertex(),e=b[f].getBackward(),d=b[f-1].getForward(),a.bezierTo(d.x,d.y,e.x,e.y,c.x,c.y);return this}}})}},_p[25]={value:function(a,b,c){var d=_p.r(64),e=_p.r(74),f=_p.r(11).createClass(\"BezierPoint\",{constructor:function(a,b,c){this.vertex=new d(a,b),this.forward=new d(a,b),this.backward=new d(a,b),this.setSmooth(void 0===c||c),this.setSymReflaction(!0)},clone:function(){var a=new f,b=null;return b=this.getVertex(),a.setVertex(b.x,b.y),b=this.getForward(),a.setForward(b.x,b.y),b=this.getBackward(),a.setBackward(b.x,b.y),a.setSymReflaction(this.isSymReflaction),a.setSmooth(this.isSmooth()),a},setVertex:function(a,b){return this.vertex.setPoint(a,b),this.update(),this},moveTo:function(a,b){var c=this.forward.getPoint(),d=this.backward.getPoint(),e=this.vertex.getPoint(),f={left:a-e.x,top:b-e.y};this.forward.setPoint(c.x+f.left,c.y+f.top),this.backward.setPoint(d.x+f.left,d.y+f.top),this.vertex.setPoint(a,b),this.update()},setForward:function(a,b){return this.forward.setPoint(a,b),this.smooth&&this.updateAnother(this.forward,this.backward),this.update(),this.lastControlPointSet=this.forward,this},setBackward:function(a,b){return this.backward.setPoint(a,b),this.smooth&&this.updateAnother(this.backward,this.forward),this.update(),this.lastControlPointSet=this.backward,this},setSymReflaction:function(a){return this.symReflaction=a,this.smooth&&this.setSmooth(!0),this},isSymReflaction:function(){return this.symReflaction},updateAnother:function(a,b){var c=this.getVertex(),d=e.fromPoints(a.getPoint(),c),f=e.fromPoints(c,b.getPoint());return f=d.normalize(this.isSymReflaction()?d.length():f.length()),b.setPoint(c.x+f.x,c.y+f.y),this},setSmooth:function(a){var b;return this.smooth=!!a,this.smooth&&(b=this.lastControlPointSet)&&this.updateAnother(b,b==this.forward?this.backward:this.forward),this},isSmooth:function(){return this.smooth},getVertex:function(){return this.vertex.getPoint()},getForward:function(){return this.forward.getPoint()},getBackward:function(){return this.backward.getPoint()},update:function(){return this.container?void(this.container.update&&this.container.update(this)):this}});return f}},_p[26]={value:function(a,b,c){var d=_p.r(11).createClass(\"Box\",{constructor:function(a,b,c,d){var e=arguments[0];e&&\"object\"==typeof e&&(a=e.x,b=e.y,c=e.width,d=e.height),0>c&&(a-=c=-c),0>d&&(b-=d=-d),this.x=a||0,this.y=b||0,this.width=c||0,this.height=d||0,this.left=this.x,this.right=this.x+this.width,this.top=this.y,this.bottom=this.y+this.height,this.cx=this.x+this.width/2,this.cy=this.y+this.height/2},getRangeX:function(){return[this.left,this.right]},getRangeY:function(){return[this.top,this.bottom]},merge:function(a){if(this.isEmpty())return new d(a.x,a.y,a.width,a.height);var b=Math.min(this.left,a.left),c=Math.max(this.right,a.right),e=Math.min(this.top,a.top),f=Math.max(this.bottom,a.bottom);return new d(b,e,c-b,f-e)},intersect:function(a){!a instanceof d&&(a=new d(a));var b=Math.max(this.left,a.left),c=Math.min(this.right,a.right),e=Math.max(this.top,a.top),f=Math.min(this.bottom,a.bottom);return b>c||e>f?new d:new d(b,e,c-b,f-e)},expand:function(a,b,c,e){if(arguments.length<1)return new d(this);arguments.length<2&&(b=a),arguments.length<3&&(c=a),arguments.length<4&&(e=b);var f=this.left-e,g=this.top-a,h=this.width+b+e,i=this.height+a+c;return new d(f,g,h,i)},valueOf:function(){return[this.x,this.y,this.width,this.height]},toString:function(){return this.valueOf().join(\" \")},isEmpty:function(){return!this.width||!this.height}});return d.parse=function(a){return\"string\"==typeof a?d.parse(a.split(/[\\s,]+/).map(parseFloat)):a instanceof Array?new d(a[0],a[1],a[2],a[3]):\"x\"in a?new d(a):null},d}},_p[27]={value:function(a,b,c){return _p.r(11).createClass(\"Circle\",{base:_p.r(33),constructor:function(a,b,c){this.callBase(a,a,b,c)},getRadius:function(){return this.getRadiusX()},setRadius:function(a){return this.callBase(a,a)}})}},_p[28]={value:function(a,b,c){var d=_p.r(11),e=_p.r(61),f=d.createClass(\"Clip\",{base:e,mixins:[_p.r(62)],constructor:function(a){this.callBase(\"clipPath\",a)},clip:function(a){return a.getNode().setAttribute(\"clip-path\",this),this}});return d.extendClass(e,{clipWith:function(a){return a instanceof e&&(a=new f(a.getPaper()).addShape(a)),a.clip(this),this}}),f}},_p[29]={value:function(a,b,c){var d=_p.r(12),e=_p.r(65),f={},g=_p.r(11).createClass(\"Color\",{constructor:function(){var a=null;\"string\"==typeof arguments[0]?(a=f.parseToValue(arguments[0]),null===a&&(a={r:0,g:0,b:0,h:0,s:0,l:0,a:1})):(a={r:0|arguments[0],g:0|arguments[1],b:0|arguments[2],a:void 0===arguments[3]?1:parseFloat(arguments[3])},a=f.overflowFormat(a),a=d.extend(a,f.rgbValueToHslValue(a))),this._color=a},set:function(a,b){if(!g._MAX_VALUE[a])throw new Error(\"Color set(): Illegal parameter\");return\"a\"!==a&&(b=Math.floor(b)),\"h\"==a&&(b=(b+360)%360),this._color[a]=Math.max(g._MIN_VALUE[a],Math.min(g._MAX_VALUE[a],b)),-1!==\"rgb\".indexOf(a)?this._color=d.extend(this._color,f.rgbValueToHslValue(this._color)):-1!==\"hsl\".indexOf(a)&&(this._color=d.extend(this._color,f.hslValueToRGBValue(this._color))),this},inc:function(a,b){return b=this.get(a)+b,\"h\"==a?b=(b+360)%360:(b=Math.min(g._MAX_VALUE[a],b),b=Math.max(g._MIN_VALUE[a],b)),this.clone().set(a,b)},dec:function(a,b){return this.inc(a,-b)},clone:function(){return new g(this.toRGBA())},get:function(a){return g._MAX_VALUE[a]?this._color[a]:null},getValues:function(){return d.clone(this._color)},valueOf:function(){return this.getValues()},toRGB:function(){return f.toString(this._color,\"rgb\")},toRGBA:function(){return f.toString(this._color,\"rgba\")},toHEX:function(){return f.toString(this._color,\"hex\")},toHSL:function(){return f.toString(this._color,\"hsl\")},toHSLA:function(){return f.toString(this._color,\"hsla\")},toString:function(){return 1===this._color.a?this.toRGB():this.toRGBA()}});return d.extend(g,{_MAX_VALUE:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},_MIN_VALUE:{r:0,g:0,b:0,h:0,s:0,l:0,a:0},R:\"r\",G:\"g\",B:\"b\",H:\"h\",S:\"s\",L:\"l\",A:\"a\",parse:function(a){var b;return d.isString(a)&&(b=f.parseToValue(a)),d.isObject(a)&&\"r\"in a&&(b=a),null===b?new g:new g(b.r,b.g,b.b,b.a)},createHSL:function(a,b,c){return g.createHSLA(a,b,c,1)},createHSLA:function(a,b,c,d){var e=null;return b+=\"%\",c+=\"%\",e=[\"hsla(\"+a,b,c,d+\")\"],g.parse(e.join(\", \"))},createRGB:function(a,b,c){return g.createRGBA(a,b,c,1)},createRGBA:function(a,b,c,d){return new g(a,b,c,d)}}),d.extend(f,{parseToValue:function(a){var b={};if(a=e.EXTEND_STANDARD[a]||e.COLOR_STANDARD[a]||a,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(a))b=f.hexToValue(a);else if(/^(rgba?)/i.test(a))b=f.rgbaToValue(a);else{if(!/^(hsla?)/i.test(a))return null;b=f.hslaToValue(a)}return f.overflowFormat(b)},hexToValue:function(a){var b={},c=[\"r\",\"g\",\"b\"];return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(a)?(a=RegExp.$1.split(\"\"),d.each(c,function(c,d){3===a.length?b[c]=f.toNumber(a[d]+a[d]):b[c]=f.toNumber(a[2*d]+a[2*d+1])}),b=d.extend(b,f.rgbValueToHslValue(b)),b.a=1,b):null},rgbaToValue:function(a){var b={},c=!1,e=[\"r\",\"g\",\"b\"];return/^(rgba?)/i.test(a)?(c=4===RegExp.$1.length,a=a.replace(/^rgba?/i,\"\").replace(/\\s+/g,\"\").replace(/[^0-9,.]/g,\"\").split(\",\"),d.each(e,function(c,d){b[c]=0|a[d]}),b=d.extend(b,f.rgbValueToHslValue(b)),b.a=c?parseFloat(a[3]):1,b):null},hslaToValue:function(a){var b={},c=!1;return/^(hsla?)/i.test(a)?(c=4===RegExp.$1.length,a=a.replace(/^hsla?/i,\"\").replace(/\\s+/g,\"\").replace(/[^0-9,.]/g,\"\").split(\",\"),b.h=0|a[0],b.s=0|a[1],b.l=0|a[2],b=d.extend(b,f.hslValueToRGBValue(b)),b=f.hslValueToRGBValue(b),b.a=c?parseFloat(a[3]):1,b):null},hslValueToRGBValue:function(a){function b(a,b,c){return 0>c?c+=1:c>1&&(c-=1),1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(6*(2/3-c)):a}var c=null,e=null,f={};return a=d.extend({},a),\n",
       "a.h=a.h/360,a.s=a.s/100,a.l=a.l/100,0===a.s?f.r=f.g=f.b=a.l:(c=a.l<.5?a.l*(1+a.s):a.l+a.s-a.l*a.s,e=2*a.l-c,f.r=b(e,c,a.h+1/3),f.g=b(e,c,a.h),f.b=b(e,c,a.h-1/3)),f.r=Math.min(Math.round(255*f.r),255),f.g=Math.min(Math.round(255*f.g),255),f.b=Math.min(Math.round(255*f.b),255),f},rgbValueToHslValue:function(a){var b=null,c=null,e={};return a=d.extend({},a),a.r=a.r/255,a.g=a.g/255,a.b=a.b/255,b=Math.max(a.r,a.g,a.b),c=Math.min(a.r,a.g,a.b),b===c?e.h=0:b===a.r?a.g>=a.b?e.h=60*(a.g-a.b)/(b-c):e.h=60*(a.g-a.b)/(b-c)+360:b===a.g?e.h=60*(a.b-a.r)/(b-c)+120:b===a.b&&(e.h=60*(a.r-a.g)/(b-c)+240),e.l=(b+c)/2,0===e.l||b===c?e.s=0:e.l>0&&e.l<=.5?e.s=(b-c)/(b+c):e.s=(b-c)/(2-b-c),e.h=Math.round(e.h),e.s=Math.round(100*e.s),e.l=Math.round(100*e.l),e},toString:function(a,b){var c=[];return a=d.extend({},a),-1!==b.indexOf(\"hsl\")&&(a.s+=\"%\",a.l+=\"%\"),\"hex\"!==b?(d.each(b.split(\"\"),function(b){c.push(a[b])}),(b+\"(\"+c.join(\", \")+\")\").toLowerCase()):(c.push(f.toHexValue(+a.r)),c.push(f.toHexValue(+a.g)),c.push(f.toHexValue(+a.b)),(\"#\"+c.join(\"\")).toLowerCase())},toNumber:function(a){return 0|Number(\"0x\"+a)},toHexValue:function(a){var b=a.toString(16);return 1===b.length?\"0\"+b:b},overflowFormat:function(a){var b=d.extend({},a),c=\"rgba\";return d.each(c.split(\"\"),function(a){b.hasOwnProperty(a)&&(b[a]=Math.min(g._MAX_VALUE[a],b[a]),b[a]=Math.max(g._MIN_VALUE[a],b[a]))}),b}}),g}},_p[30]={value:function(a,b,c){function d(){return this.container.removeItem(this),this}return _p.r(11).createClass(\"Container\",{getItems:function(){return this.items||(this.items=[])},getItem:function(a){return this.getItems()[a]},getFirstItem:function(){return this.getItem(0)},getLastItem:function(){return this.getItem(this.getItems().length-1)},indexOf:function(a){return this.getItems().indexOf(a)},eachItem:function(a){var b,c=this.getItems(),d=c.length;for(b=0;d>b;b++)a.call(this,b,c[b]);return this},addItem:function(a,b,c){var e=this.getItems(),f=e.length;return~e.indexOf(a)?this:(b>=0&&f>b||(b=f),e.splice(b,0,a),\"object\"==typeof a&&(a.container=this,a.remove=d),this.handleAdd(a,b),c||this.onContainerChanged(\"add\",[a]),this)},addItems:function(a){for(var b=0,c=a.length;c>b;b++)this.addItem(a[b],-1,!0);return this.onContainerChanged(\"add\",a),this},setItems:function(a){return this.clear().addItems(a)},appendItem:function(a){return this.addItem(a)},prependItem:function(a){return this.addItem(a,0)},removeItem:function(a,b){if(\"number\"!=typeof a)return this.removeItem(this.indexOf(a));var c=this.getItems(),d=(c.length,c[a]);return void 0===d?this:(c.splice(a,1),d.container&&delete d.container,d.remove&&delete d.remove,this.handleRemove(d,a),b||this.onContainerChanged(\"remove\",[d]),this)},clear:function(){for(var a,b=[];a=this.getFirstItem();)b.push(a),this.removeItem(0,!0);return this.onContainerChanged(\"remove\",b),this},onContainerChanged:function(a,b){},handleAdd:function(a,b){},handleRemove:function(a,b){}})}},_p[31]={value:function(a,b,c){var d=_p.r(12),e={getCurvePanLines:function(a,b){var c=e.getCenterPoints(a),d=e.getPanLine(a.length,c);return e.getMovedPanLines(a,d,b)},getCenterPoints:function(a){for(var b={},c=null,d=0,e=0,f=a.length;f>d;d++)e=d===f-1?0:d+1,c=d+\",\"+e,b[c]={x:(a[d].x+a[e].y)/2,y:(a[d].x+a[e].y)/2};return b},getPanLine:function(a,b){for(var c,d={},e=null,f=0;a>f;f++){var g=null,h=null;c=(f+1)%a,e=c,g=b[f+\",\"+c],f=c,c=(f+1)%a,h=b[f+\",\"+c],d[e]={points:[{x:g.x,y:g.y},{x:h.x,y:h.y}],center:{x:(g.x+h.x)/2,y:(g.y+h.y)/2}},f=(e+a-1)%a}return d},getMovedPanLines:function(a,b,c){var e={};return d.each(a,function(a,f){var g=b[f],h=g.center,i={x:h.x-a.x,y:h.y-a.y},j=e[f]={points:[],center:{x:a.x,y:a.y}};d.each(g.points,function(a,b){var d={x:a.x-i.x,y:a.y-i.y},e=j.center,f=d.x-e.x,g=d.y-e.y;d.x=e.x+c*f,d.y=e.y+c*g,j.points.push(d)})}),e}};return _p.r(11).createClass(\"Curve\",{base:_p.r(47),mixins:[_p.r(52)],constructor:function(a,b){this.callBase(),this.setPoints(a||[]),this.closeState=!!b,this.changeable=!0,this.smoothFactor=1,this.update()},onContainerChanged:function(){this.changeable&&this.update()},setSmoothFactor:function(a){return this.smoothFactor=0>a?0:a,this.update(),this},getSmoothFactor:function(){return this.smoothFactor},update:function(){var a=this.getPoints(),b=null,c=this.getDrawer(),d=null,f=null,g=null;if(c.clear(),0===a.length)return this;if(c.moveTo(a[0]),1===a.length)return this;if(2===a.length)return c.lineTo(a[1]),this;b=e.getCurvePanLines(a,this.getSmoothFactor());for(var h=1,i=a.length;i>h;h++)d=b[h].center,f=this.closeState||h!=i-1?b[h].points[0]:b[h].center,g=this.closeState||1!=h?b[h-1].points[1]:b[h-1].center,c.bezierTo(g.x,g.y,f.x,f.y,d.x,d.y);return this.closeState&&(d=b[0].center,f=b[0].points[0],g=b[a.length-1].points[1],c.bezierTo(g.x,g.y,f.x,f.y,d.x,d.y)),this},close:function(){return this.closeState=!0,this.update()},open:function(){return this.closeState=!1,this.update()},isClose:function(){return!!this.closeState}})}},_p[32]={value:function(a,b,c){return _p.r(11).createClass(\"Data\",{constructor:function(){this._data={}},setData:function(a,b){return this._data[a]=b,this},getData:function(a){return this._data[a]},removeData:function(a){return delete this._data[a],this}})}},_p[33]={value:function(a,b,c){var d=(_p.r(12),_p.r(51));return _p.r(11).createClass(\"Ellipse\",{base:_p.r(47),constructor:function(a,b,c,d){this.callBase(),this.rx=a||0,this.ry=b||0,this.cx=c||0,this.cy=d||0,this.update()},update:function(){var a=this.rx,b=this.ry,c=this.cx+a,d=this.cx-a,e=this.cy,f=this.getDrawer();return f.clear(),f.moveTo(c,e),f.arcTo(a,b,0,1,1,d,e),f.arcTo(a,b,0,1,1,c,e),this},getRadius:function(){return{x:this.rx,y:this.ry}},getRadiusX:function(){return this.rx},getRadiusY:function(){return this.ry},getCenter:function(){return new d(this.cx,this.cy)},getCenterX:function(){return this.cx},getCenterY:function(){return this.cy},setRadius:function(a,b){return this.rx=a,this.ry=b,this.update()},setRadiusX:function(a){return this.rx=a,this.update()},setRadiusY:function(a){return this.ry=a,this.update()},setCenter:function(a,b){if(1==arguments.length){var c=d.parse(arguments[0]);a=c.x,b=c.y}return this.cx=a,this.cy=b,this.update()},setCenterX:function(a){return this.cx=a,this.update()},setCenterY:function(a){return this.cy=a,this.update()}})}},_p[34]={value:function(a,b,c){function d(a,b,c){return c=!!c,j.isString(a)&&(a=a.match(/\\S+/g)),j.each(a,function(a){f.call(this,this.node,a,b,c)},this),this}function e(a,b){var c=null,d=this._EVNET_UID,e=void 0===b;return c=m[d][a],e||(e=!0,j.each(c,function(a,d){a===b?delete c[d]:e=!1})),e&&(h(this.node,a,l[d][a]),delete m[d][a],delete l[d][a]),this}function f(a,b,c,d){var e=this._EVNET_UID,f=this;l[e]||(l[e]={}),l[e][b]||(l[e][b]=function(a){a=new k(a||window.event),j.each(m[e][b],function(c){var e;return c&&(e=c.call(f,a),d&&f.off(b,c)),e},f)}),m[e]||(m[e]={}),m[e][b]?m[e][b].push(c):(m[e][b]=[c],a&&\"on\"+b in a&&g(a,b,l[e][b]))}function g(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent(\"on\"+b,c)}function h(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent(b,c)}function i(a,b,c){var d=null,e=null,f=l[a._EVNET_UID];f&&(e=f[b],e&&(d=j.extend({type:b,target:a},c||{}),e.call(a,d)))}!function(){function a(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent(\"CustomEvent\");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c}a.prototype=window.Event.prototype,window.CustomEvent=a}();var j=_p.r(12),k=_p.r(63),l={},m={},n=0;return _p.r(11).createClass(\"EventHandler\",{constructor:function(){this._EVNET_UID=++n},addEventListener:function(a,b){return d.call(this,a,b,!1)},addOnceEventListener:function(a,b){return d.call(this,a,b,!0)},removeEventListener:function(a,b){return e.call(this,a,b)},on:function(a,b){return this.addEventListener.apply(this,arguments)},once:function(a,b){return this.addOnceEventListener.apply(this,arguments)},off:function(){return this.removeEventListener.apply(this,arguments)},fire:function(a,b){return this.trigger.apply(this,arguments)},trigger:function(a,b){return i(this,a,b),this}})}},_p[35]={value:function(a){function b(a){var b,c,d,e,f;for(b=[],c=0;c<a.length;c++)for(e=a[c],b.push(f=[]),d=0;d<e.length;d++)f.push(e[d]);return a.isUniform&&(b.isUniform=!0),a.isAbsolute&&(b.isAbsolute=!0),a.isCurve&&(b.isCurve=!0),b}function c(a,b,c){function d(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return a.push(a.splice(c,1)[0])}function e(){var f=Array.prototype.slice.call(arguments,0),g=f.join(\"␀\"),h=e.cache=e.cache||{},i=e.count=e.count||[];return h.hasOwnProperty(g)?(d(i,g),c?c(h[g]):h[g]):(i.length>=1e3&&delete h[i.shift()],i.push(g),h[g]=a.apply(b,f),c?c(h[g]):h[g])}return e}function d(a,b,c,e,f,g,h,i,j,k){var l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q=Math,R=Q.PI,S=Math.abs,T=120*R/180,U=R/180*(+f||0),V=[],W=function(a,b,c){var d=a*Q.cos(c)-b*Q.sin(c),e=a*Q.sin(c)+b*Q.cos(c);return{x:d,y:e}};if(k?(w=k[0],x=k[1],u=k[2],v=k[3]):(l=W(a,b,-U),a=l.x,b=l.y,l=W(i,j,-U),i=l.x,j=l.y,m=Q.cos(R/180*f),n=Q.sin(R/180*f),p=(a-i)/2,q=(b-j)/2,o=p*p/(c*c)+q*q/(e*e),o>1&&(o=Q.sqrt(o),c=o*c,e=o*e),r=c*c,s=e*e,t=(g==h?-1:1)*Q.sqrt(S((r*s-r*q*q-s*p*p)/(r*q*q+s*p*p))),u=t*c*q/e+(a+i)/2,v=t*-e*p/c+(b+j)/2,w=Q.asin(((b-v)/e).toFixed(9)),x=Q.asin(((j-v)/e).toFixed(9)),w=u>a?R-w:w,x=u>i?R-x:x,0>w&&(w=2*R+w),0>x&&(x=2*R+x),h&&w>x&&(w-=2*R),!h&&x>w&&(x-=2*R)),y=x-w,S(y)>T&&(z=x,A=i,B=j,x=w+T*(h&&x>w?1:-1),i=u+c*Q.cos(x),j=v+e*Q.sin(x),V=d(i,j,c,e,f,0,h,A,B,[x,z,u,v])),y=x-w,C=Q.cos(w),D=Q.sin(w),E=Q.cos(x),F=Q.sin(x),G=Q.tan(y/4),H=4/3*c*G,I=4/3*e*G,J=[a,b],K=[a+H*D,b-I*C],L=[i+H*F,j-I*E],M=[i,j],K[0]=2*J[0]-K[0],K[1]=2*J[1]-K[1],k)return[K,L,M].concat(V);for(V=[K,L,M].concat(V).join().split(\",\"),N=[],O=0,P=V.length;P>O;O++)N[O]=O%2?W(V[O-1],V[O],U).y:W(V[O],V[O+1],U).x;return N}function e(a,b,c,d,e,f){var g=1/3,h=2/3;return[g*a+h*c,g*b+h*d,g*e+h*c,g*f+h*d,e,f]}function f(a,b){function c(a){return function(b,c){return b+a*(c-b)}}var d=c(b||.5),e=a,f=e[0],g=e[1],h=e[2],i=e[3],j=e[4],k=e[5],l=e[6],m=e[7],n=d(f,h),o=d(g,i),p=d(h,j),q=d(i,k),r=d(j,l),s=d(k,m),t=d(n,p),u=d(o,q),v=d(p,r),w=d(q,s),x=d(t,v),y=d(u,w);return[[f,g,n,o,t,u,x,y],[x,y,v,w,r,s,l,m]]}var g=_p.r(12),h=_p.r(51),i=_p.r(74),j=_p.r(44),k={},l=/([achlmrqstvz])[\\s,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\\s]*,?\\s*)+)/gi,m=/(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)\\s*,?\\s*/gi,n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0};k.pathToString=function(a){return a=a||this,\"string\"==typeof a?a:a instanceof Array?(a=g.flatten(a),a.join(\",\").replace(/,?([achlmqrstvxz]),?/gi,\"$1\")):void 0},k.parsePathString=c(function(a){var b=[];return a.replace(l,function(a,c,d){var e=[],f=c.toLowerCase();if(d.replace(m,function(a,b){b&&e.push(+b)}),\"m\"==f&&e.length>2&&(b.push([c].concat(e.splice(0,2))),f=\"l\",c=\"m\"==c?\"l\":\"L\"),\"r\"==f)b.push([c].concat(e));else for(;e.length>=n[f]&&(b.push([c].concat(e.splice(0,n[f]))),n[f]););}),b.isUniform=!0,b.toString=k.pathToString,b}),k.pathToAbsolute=c(function(a){var b,c,d,e,f,g,h,i,j=a.isUniform?a:k.parsePathString(k.pathToString(a)),l=[],m=0,n=0,o=0,p=0,q=0;for(\"M\"==j[0][0]&&(m=+j[0][1],n=+j[0][2],o=m,p=n,q++,l[0]=[\"M\",m,n]),d=q,g=j.length;g>d;d++){if(l.push(b=[]),c=j[d],c[0]!=c[0].toUpperCase())switch(b[0]=c[0].toUpperCase(),b[0]){case\"A\":b[1]=c[1],b[2]=c[2],b[3]=c[3],b[4]=c[4],b[5]=c[5],b[6]=+(c[6]+m),b[7]=+(c[7]+n);break;case\"V\":b[1]=+c[1]+n;break;case\"H\":b[1]=+c[1]+m;break;case\"M\":o=+c[1]+m,p=+c[2]+n;break;default:for(e=1,h=c.length;h>e;e++)b[e]=+c[e]+(e%2?m:n)}else for(f=0,i=c.length;i>f;f++)b[f]=c[f];switch(b[0]){case\"Z\":m=o,n=p;break;case\"H\":m=b[1];break;case\"V\":n=b[1];break;case\"M\":o=b[b.length-2],p=b[b.length-1];break;default:m=b[b.length-2],n=b[b.length-1]}}return l.isUniform=!0,l.isAbsolute=!0,l.toString=k.pathToString,l}),k.pathToCurve=c(function(a){var b,c,f,g,h,i,j,l,m,n,o,p,q=[];for(a.isAbsolute||(a=k.pathToAbsolute(a)),b=0;b<a.length;b++)if(f=a[b][0],g=a[b].slice(1),\"M\"!=f){switch(\"Z\"==f&&(l=!0,f=\"L\",g=h),j=g.slice(g.length-2),\"H\"==f&&(j=[g[0],i[1]],f=\"L\"),\"V\"==f&&(j=[i[0],g[0]],f=\"L\"),(\"S\"==f||\"T\"==f)&&(n=[i[0]+(i[0]-m[0]),i[1]+(i[1]-m[1])]),f){case\"L\":o=i,p=j;break;case\"C\":o=g.slice(0,2),p=g.slice(2,4);break;case\"S\":o=n.slice(),p=g.slice(0,2);break;case\"Q\":m=g.slice(0,2),g=e.apply(null,i.concat(g)),o=g.slice(0,2),p=g.slice(2,4);break;case\"T\":g=e.apply(null,i.concat(n).concat(g)),o=g.slice(0,2),p=g.slice(2,4);break;case\"A\":for(g=d.apply(null,i.concat(g)),c=0;c in g;)o=g.slice(c,c+2),p=g.slice(c+2,c+4),j=g.slice(c+4,c+6),q.push([\"C\"].concat(o).concat(p).concat(j)),c+=6}\"A\"!=f&&q.push([\"C\"].concat(o).concat(p).concat(j)),i=j,\"Q\"!=f&&(m=p),l&&(q.push([\"Z\"]),l=!1)}else h=m=i=g,q.push(a[b]);return q.isUniform=!0,q.isAbsolute=!0,q.isCurve=!0,q.toString=k.pathToString,q}),k.cutBezier=c(f),k.subBezier=function(a,b,c){var d=f(a,b)[0];return c?f(d,c/b)[1]:d},k.pointAtBezier=function(a,b){var c=f(a,b)[0],d=h.parse(c.slice(6)),e=h.parse(c.slice(4,2)),g=i.fromPoints(e,d);return 0===b?d.tan=k.pointAtBezier(a,.01).tan:d.tan=g.normalize(),d},k.bezierLength=c(function(a){function b(a){var b=i*Math.pow(a,4)+j*Math.pow(a,3)+k*Math.pow(a,2)+l*a+m;return 0>b&&(b=0),Math.pow(b,.5)}var c,d,e,f,g,h,i,j,k,l,m,n=a;return c=-3*n[0]+9*n[2]-9*n[4]+3*n[6],d=6*n[0]-12*n[2]+6*n[4],e=-3*n[0]+3*n[2],f=-3*n[1]+9*n[3]-9*n[5]+3*n[7],g=6*n[1]-12*n[3]+6*n[5],h=-3*n[1]+3*n[3],i=Math.pow(c,2)+Math.pow(f,2),j=2*(c*d+f*g),k=2*(c*e+f*h)+Math.pow(d,2)+Math.pow(g,2),l=2*(d*e+g*h),m=Math.pow(e,2)+Math.pow(h,2),(b(0)+b(1)+4*(b(.125)+b(.375)+b(.625)+b(.875))+2*(b(.25)+b(.5)+b(.75)))/24});var o=c(function(a){var b,c,d,e,f,g,h;for(g=[],h=0,b=0,c=a.length;c>b;b++)d=a[b],\"M\"!=d[0]?\"Z\"!=d[0]?(f=k.bezierLength(e.concat(d.slice(1))),g.push([h,h+f]),h+=f,e=d.slice(4)):g.push(null):(e=d.slice(1),g.push(null));return g.totalLength=h,g});k.subPath=function(a,b,c){var d;if(c=c||0,d=b-c,d-=0|d,c-=0|c,b=c+d,b>1)return k.subPath(a,1,c).concat(k.subPath(a,b-1));a.isCurve||(a=k.pathToCurve(a));var e,f,g,h,i,j,l,m,n,p=o(a),q=p.totalLength,r=q*b,s=q*(c||0),t=[];for(e=0,f=a.length;f>e;e++)if(\"M\"!=a[e][0]){if(\"Z\"!=a[e][0])if(g=p[e][0],h=p[e][1],i=h-g,l=j.concat(a[e].slice(1)),s>h)j=l.slice(l.length-2);else{if(s>=g)m=k.subBezier(l,Math.min((r-g)/i,1),(s-g)/i),n=!0,j=m.slice(0,2),t.push([\"M\"].concat(m.slice(0,2))),t.push([\"C\"].concat(m.slice(2)));else if(r>=h)t.push(a[e].slice());else{if(!(r>=g))break;m=k.subBezier(l,(r-g)/i),t.push([\"C\"].concat(m.slice(2))),n=!1}j=l.slice(l.length-2)}}else j=a[e].slice(1),n&&t.push(a[e].slice());return t.isAbsolute=!0,t.isCurve=!0,t.isUniform=!0,t.toString=k.pathToString,t},k.pointAtPath=function(a,b){a.isCurve||(a=k.pathToCurve(a));var c=k.subPath(a,b),d=\"Z\"==c[c.length-1][0]?c[c.length-2]:c[c.length-1];d=d.slice(1);var e=h.parse(d.slice(4)),f=h.parse(d.slice(2,4));return e.tan=i.fromPoints(f,e).normalize(),e},k.pathLength=c(function(a){a.isCurve||(a=k.pathToCurve(a));var b=o(a);return b.totalLength}),k.pathKeyPoints=c(function(a){var b,c,d;for(a.isCurve||(a=k.pathToCurve(a)),d=[],b=0,c=a.length;c>b;b++)\"z\"!=a[b][0]&&d.push(a[b].slice(a[b].length-2));return d});var p=c(function(a,c){function d(a,b){return a[b||a.i]&&a[b||a.i][0]}function e(a,b){return a[b||a.i]&&a[b||a.i].slice(1)}function f(a,b){var c=e(a,b);return c&&c.slice(-2)}function g(a){return\"Z\"==d(a)?(a.splice(a.i,1),!0):!1}function h(a){return\"M\"==d(a)?(a.o.splice(a.o.i,0,[\"M\"].concat(f(a.o,a.o.i-1))),a.i++,a.o.i++,!0):!1}function i(a){for(var b,c=1;!b;)b=f(a,a.length-c++);for(a.o.i=a.i;a.length<a.o.length;)g(a.o)||h(a.o)||(a.push([\"C\"].concat(b).concat(b).concat(b)),a.i++,a.o.i++)}a.isCurve||(a=k.pathToCurve(a)),c.isCurve||(c=k.pathToCurve(c));var j=b(a),l=b(c);for(j.i=0,l.i=0,j.o=l,l.o=j;j.i<j.length&&l.i<l.length;)g(j)||g(l)||(d(j)!=d(l)?h(j)||h(l)||(j.i++,l.i++):(j.i++,l.i++));return j.i==j.length&&i(j),l.i==l.length&&i(l),delete j.i,delete j.o,delete l.i,delete l.o,[j,l]});return k.alignCurve=p,k.pathTween=function(a,b,c){if(0===c)return a;if(1===c)return b;var d,e,f,g=p(a,b),h=[];for(a=g[0],b=g[1],e=0;e<a.length;e++)for(h.push(d=[]),d.push(a[e][0]),f=1;f<a[e].length;f++)d.push(a[e][f]+c*(b[e][f]-a[e][f]));return h.isUniform=h.isCurve=h.isAbsolute=!0,h},k.transformPath=c(function(a,b){var c,d,e,f,g,i;for(a.isCurve||(a=k.pathToCurve(a)),f=[],c=0,d=a.length;d>c;c++)for(f.push(g=[a[c][0]]),e=1;e<a[c].length;e+=2)i=a[c].slice(e,e+2),i=b.transformPoint(h.parse(i)),f.push(i);return f}),_p.r(11).extendClass(j,{transformPath:function(a){return k.transformPath(a,this)}}),k}},_p[36]={value:function(a,b,c){var d=_p.r(68),e=_p.r(59),f=_p.r(29);return _p.r(11).createClass(\"GradientBrush\",{base:e,constructor:function(a,b){this.callBase(a,b),this.stops=[]},addStop:function(a,b,c){var e=d.createNode(\"stop\");return b instanceof f||(b=f.parse(b)),void 0===c&&(c=b.get(\"a\")),e.setAttribute(\"offset\",a),e.setAttribute(\"stop-color\",b.toRGB()),1>c&&e.setAttribute(\"stop-opacity\",c),this.node.appendChild(e),this}})}},_p[37]={value:function(a,b,c){var d=_p.r(62);return _p.r(11).createClass(\"Group\",{mixins:[d],base:_p.r(61),constructor:function(){this.callBase(\"g\")}})}},_p[38]={value:function(a,b,c){var d=_p.r(62);return _p.r(11).createClass(\"HyperLink\",{mixins:[d],base:_p.r(61),constructor:function(a){this.callBase(\"a\"),this.setHref(a)},setHref:function(a){return this.node.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",a),this},getHref:function(){return this.node.getAttributeNS(\"xlink:href\")},setTarget:function(a){return this.node.setAttribute(\"target\",a),this},getTarget:function(){return this.node.getAttribute(\"target\")}})}},_p[39]={value:function(a,b,c){return _p.r(11).createClass(\"Image\",{base:_p.r(61),constructor:function(a,b,c,d,e){this.callBase(\"image\"),this.url=a,this.width=b||0,this.height=c||0,this.x=d||0,this.y=e||0,this.update()},update:function(){return this.node.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",this.url),this.node.setAttribute(\"x\",this.x),this.node.setAttribute(\"y\",this.y),this.node.setAttribute(\"width\",this.width),this.node.setAttribute(\"height\",this.height),this},setUrl:function(a){return this.url=\"\"===a?null:a,this.update()},getUrl:function(){return this.url},setWidth:function(a){return this.width=a,this.update()},getWidth:function(){return this.width},setHeight:function(a){return this.height=a,this.update()},getHeight:function(){return this.height},setX:function(a){return this.x=a,this.update()},getX:function(){return this.x},setY:function(a){return this.y=a,this.update()},getY:function(){return this.y}})}},_p[40]={value:function(a,b,c){return _p.r(11).createClass(\"Line\",{base:_p.r(47),constructor:function(a,b,c,d){this.callBase(),this.point1={x:a||0,y:b||0},this.point2={x:c||0,y:d||0},this.update()},setPoint1:function(a,b){return this.point1.x=a,this.point1.y=b,this.update()},setPoint2:function(a,b){return this.point2.x=a,this.point2.y=b,this.update()},getPoint1:function(){return{x:this.point1.x,y:this.point1.y}},getPoint2:function(){return{x:this.point2.x,y:this.point2.y}},update:function(){var a=this.getDrawer();return a.clear(),a.moveTo(this.point1.x,this.point1.y),a.lineTo(this.point2.x,this.point2.y),this}})}},_p[41]={value:function(a,b,c){var d=(_p.r(68),_p.r(36));return _p.r(11).createClass(\"LinearGradientBrush\",{base:d,constructor:function(a){this.callBase(\"linearGradient\",a),this.setStartPosition(0,0),this.setEndPosition(1,0)},setStartPosition:function(a,b){return this.node.setAttribute(\"x1\",a),this.node.setAttribute(\"y1\",b),this},setEndPosition:function(a,b){return this.node.setAttribute(\"x2\",a),this.node.setAttribute(\"y2\",b),this},getStartPosition:function(){return{x:+this.node.getAttribute(\"x1\"),y:+this.node.getAttribute(\"y1\")}},getEndPosition:function(){return{x:+this.node.getAttribute(\"x2\"),y:+this.node.getAttribute(\"y2\")}}})}},_p[42]={value:function(a,b,c){var d=_p.r(51),e=_p.r(11).createClass(\"Marker\",{base:_p.r(59),mixins:[_p.r(62),_p.r(76)],constructor:function(){this.callBase(\"marker\"),this.setOrient(\"auto\")},setRef:function(a,b){return 1===arguments.length&&(b=a.y,a=a.x),this.node.setAttribute(\"refX\",a),this.node.setAttribute(\"refY\",b),this},getRef:function(){return new d(+this.node.getAttribute(\"refX\"),+this.node.getAttribute(\"refY\"))},setWidth:function(a){return this.node.setAttribute(\"markerWidth\",this.width=a),this},setOrient:function(a){return this.node.setAttribute(\"orient\",this.orient=a),this},getOrient:function(){return this.orient},getWidth:function(){return+this.width},setHeight:function(a){return this.node.setAttribute(\"markerHeight\",this.height=a),this},getHeight:function(){return+this.height}}),f=_p.r(47);return _p.r(11).extendClass(f,{setMarker:function(a,b){return b=b||\"end\",a?this.node.setAttribute(\"marker-\"+b,a.toString()):this.node.removeAttribute(\"marker-\"+b),this}}),e}},_p[43]={value:function(a,b,c){var d=_p.r(11),e=_p.r(61),f=d.createClass(\"Mask\",{base:e,mixins:[_p.r(62)],constructor:function(){this.callBase(\"mask\")},mask:function(a){return a.getNode().setAttribute(\"mask\",\"url(#\"+this.getId()+\")\"),this}});return d.extendClass(e,{maskWith:function(a){return a.mask(this),this}}),f}},_p[44]={value:function(a,b,c){function d(a,b){return{a:b.a*a.a+b.c*a.b,b:b.b*a.a+b.d*a.b,c:b.a*a.c+b.c*a.d,d:b.b*a.c+b.d*a.d,e:b.a*a.e+b.c*a.f+b.e,f:b.b*a.e+b.d*a.f+b.f}}function e(a){return a*Math.PI/180}var f=_p.r(12),g=_p.r(26),h=/matrix\\s*\\((.+)\\)/i,i=_p.r(51),j=_p.r(11).createClass(\"Matrix\",{constructor:function(){arguments.length?this.setMatrix.apply(this,arguments):this.setMatrix(1,0,0,1,0,0)},translate:function(a,b){return this.m=d(this.m,{a:1,c:0,e:a,b:0,d:1,f:b}),this},rotate:function(a){var b=e(a),c=Math.sin(b),f=Math.cos(b);return this.m=d(this.m,{a:f,c:-c,e:0,b:c,d:f,f:0}),this},scale:function(a,b){return void 0===b&&(b=a),this.m=d(this.m,{a:a,c:0,e:0,b:0,d:b,f:0}),this},skew:function(a,b){void 0===b&&(b=a);var c=Math.tan(e(a)),f=Math.tan(e(b));return this.m=d(this.m,{a:1,c:c,e:0,b:f,d:1,f:0}),this},inverse:function(){var a,b,c,d,e,f,g,h=this.m,i=h.a,k=h.b,l=h.c,m=h.d,n=h.e,o=h.f;return a=i*m-k*l,b=m/a,c=-k/a,d=-l/a,e=i/a,f=(l*o-n*m)/a,g=(k*n-i*o)/a,new j(b,c,d,e,f,g)},setMatrix:function(a,b,c,d,e,g){return 1===arguments.length?this.m=f.clone(arguments[0]):this.m={a:a,b:b,c:c,d:d,e:e,f:g},this},getMatrix:function(){return f.clone(this.m)},getTranslate:function(){var a=this.m;return{x:a.e/a.a,y:a.f/a.d}},mergeMatrix:function(a){return new j(d(this.m,a.m))},merge:function(a){return this.mergeMatrix(a)},toString:function(){return this.valueOf().join(\" \")},valueOf:function(){var a=this.m;return[a.a,a.b,a.c,a.d,a.e,a.f]},equals:function(a){var b=this.m,c=a.m;return b.a==c.a&&b.b==c.b&&b.c==c.c&&b.d==c.d&&b.e==c.e&&b.f==c.f},transformPoint:function(){return j.transformPoint.apply(null,[].slice.call(arguments).concat([this.m]))},transformBox:function(a){return j.transformBox(a,this.m)},clone:function(){return new j(this.m)}});return j.parse=function(a){var b,c=parseFloat;if(a instanceof Array)return new j({a:a[0],b:a[1],c:a[2],d:a[3],e:a[4],f:a[5]});if(b=h.exec(a)){var d=b[1].split(\",\");return 6!=d.length&&(d=b[1].split(\" \")),new j({a:c(d[0]),b:c(d[1]),c:c(d[2]),d:c(d[3]),e:c(d[4]),f:c(d[5])})}return new j},j.transformPoint=function(a,b,c){return 2===arguments.length&&(c=b,b=a.y,a=a.x),new i(c.a*a+c.c*b+c.e,c.b*a+c.d*b+c.f)},j.transformBox=function(a,b){for(var c,d,e=Number.MAX_VALUE,h=-Number.MAX_VALUE,i=Number.MAX_VALUE,k=-Number.MAX_VALUE,l=[[a.x,a.y],[a.x+a.width,a.y],[a.x,a.y+a.height],[a.x+a.width,a.y+a.height]],m=[];c=l.pop();)d=j.transformPoint(c[0],c[1],b),m.push(d),e=Math.min(e,d.x),h=Math.max(h,d.x),i=Math.min(i,d.y),k=Math.max(k,d.y);return a=new g({x:e,y:i,width:h-e,height:k-i}),f.extend(a,{closurePoints:m}),a},j.getCTM=function(a,b){function c(a,b){var c;try{c=b.getScreenCTM().inverse()}catch(d){throw new Error(\"Can not inverse source element' ctm.\")}return c.multiply(a.getScreenCTM())}var d={a:1,b:0,c:0,d:1,e:0,f:0},e=a.shapeNode||a.node;switch(b=b||\"parent\"){case\"screen\":d=e.getScreenCTM();break;case\"doc\":case\"paper\":d=e.getCTM();break;case\"view\":case\"top\":a.getPaper()&&(d=void 0!==e.getTransformToElement?e.getTransformToElement(a.getPaper().shapeNode):c(e,a.getPaper().shapeNode));break;case\"parent\":a.node.parentNode&&(d=void 0!==e.getTransformToElement?e.getTransformToElement(a.node.parentNode):c(e,a.node.parentNode));break;default:b.node&&(d=void 0!==e.getTransformToElement?e.getTransformToElement(b.shapeNode||b.node):c(e,b.shapeNode||b.node))}return d?new j(d.a,d.b,d.c,d.d,d.e,d.f):new j},j}},_p[45]={value:function(a,b,c){var d=_p.r(65),e=_p.r(29),f=_p.r(12),g=_p.r(11).createClass(\"Palette\",{constructor:function(){this.color={}},get:function(a){var b=this.color[a]||d.EXTEND_STANDARD[a]||d.COLOR_STANDARD[a]||\"\";return b?new e(b):null},getColorValue:function(a){return this.color[a]||d.EXTEND_STANDARD[a]||d.COLOR_STANDARD[a]||\"\"},add:function(a,b){return\"string\"==typeof b?this.color[a]=new e(b).toRGBA():this.color[a]=b.toRGBA(),b},remove:function(a){return this.color.hasOwnProperty(a)?(delete this.color[a],!0):!1}});return f.extend(g,{getColor:function(a){var b=d.EXTEND_STANDARD[a]||d.COLOR_STANDARD[a];return b?new e(b):null},getColorValue:function(a){return d.EXTEND_STANDARD[a]||d.COLOR_STANDARD[a]||\"\"},addColor:function(a,b){return\"string\"==typeof b?d.EXTEND_STANDARD[a]=new e(b).toRGBA():d.EXTEND_STANDARD[a]=b.toRGBA(),b},removeColor:function(a){return d.EXTEND_STANDARD.hasOwnProperty(a)?(delete d.EXTEND_STANDARD[a],!0):!1}}),g}},_p[46]={value:function(a,b,c){var d=_p.r(11),e=_p.r(12),f=_p.r(68),g=_p.r(30),h=_p.r(62),i=_p.r(76),j=_p.r(34),k=_p.r(67),l=_p.r(44),m=d.createClass(\"Paper\",{mixins:[h,j,k,i],constructor:function(a){this.callBase(),this.node=this.createSVGNode(),this.node.paper=this,this.node.appendChild(this.resourceNode=f.createNode(\"defs\")),this.node.appendChild(this.shapeNode=f.createNode(\"g\")),this.resources=new g,this.setWidth(\"100%\").setHeight(\"100%\"),a&&this.renderTo(a),this.callMixin()},renderTo:function(a){e.isString(a)&&(a=document.getElementById(a)),this.container=a,a.appendChild(this.node)},createSVGNode:function(){var a=f.createNode(\"svg\");return a.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),a.setAttribute(\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\"),a.setAttribute(\"version\",\"1.1\"),a},getNode:function(){return this.node},getContainer:function(){return this.container},getWidth:function(){return this.node.clientWidth},setWidth:function(a){return this.node.setAttribute(\"width\",a),this},getHeight:function(){return this.node.clientHeight},setHeight:function(a){return this.node.setAttribute(\"height\",a),this},setViewPort:function(a,b,c){var d,e;1==arguments.length&&(d=arguments[0],a=d.center.x,b=d.center.y,c=d.zoom),c=c||1,e=this.getViewBox();var f=new l,g=e.x+e.width/2-a,h=e.y+e.height/2-b;return f.translate(-a,-b),f.scale(c),f.translate(a,b),f.translate(g,h),this.shapeNode.setAttribute(\"transform\",\"matrix(\"+f+\")\"),this.viewport={center:{x:a,y:b},offset:{x:g,y:h},zoom:c},this},getViewPort:function(){if(!this.viewport){var a=this.getViewBox();return{zoom:1,center:{x:a.x+a.width/2,y:a.y+a.height/2},offset:{x:0,y:0}}}return this.viewport},getViewPortMatrix:function(){return l.parse(this.shapeNode.getAttribute(\"transform\"))},getViewPortTransform:function(){var a=this.shapeNode.getCTM();return new l(a.a,a.b,a.c,a.d,a.e,a.f)},getTransform:function(){return this.getViewPortTransform().reverse()},addResource:function(a){return this.resources.appendItem(a),a.node&&this.resourceNode.appendChild(a.node),this},removeResource:function(a){return a.remove&&a.remove(),a.node&&this.resourceNode.removeChild(a.node),this},getPaper:function(){return this}}),n=_p.r(61);return d.extendClass(n,{getPaper:function(){for(var a=this.container;a&&a instanceof m==!1;)a=a.container;return a},isAttached:function(){return!!this.getPaper()},whenPaperReady:function(a){function b(){var b=c.getPaper();return b&&a&&a.call(c,b),b}var c=this;return b()||this.on(\"add treeadd\",function d(){b()&&(c.off(\"add\",d),c.off(\"treeadd\",d))}),this}}),m}},_p[47]={value:function(a,b,c){var d=_p.r(12),e=_p.r(11).createClass,f=_p.r(61),g=_p.r(68),h=_p.r(35),i=Array.prototype.slice,j=(d.flatten,e(\"PathDrawer\",{constructor:function(a){this.segment=[],this.path=a,this.__clear=!1},getPath:function(){return this.path},redraw:function(){return this._transation=this._transation||[],this.clear()},done:function(){var a=this._transation;return this._transation=null,this.push(a),this},clear:function(){return this._transation?this._transation=[]:this.path.setPathData(\"M 0 0\"),this._clear=!0,this},push:function(){var a,b=i.call(arguments);return this._transation?(this._transation.push(b),this):(this._clear?(a=\"\",this._clear=!1):a=this.path.getPathData(),a=a||\"\",this.path.setPathData(a+h.pathToString(b)),this)},moveTo:function(a,b){return this.push(\"M\",i.call(arguments))},moveBy:function(a,b){return this.push(\"m\",i.call(arguments))},lineTo:function(a,b){return this.push(\"L\",i.call(arguments))},lineBy:function(a,b){return this.push(\"l\",i.call(arguments))},arcTo:function(a,b,c,d,e,f,g){return this.push(\"A\",i.call(arguments))},arcBy:function(a,b,c,d,e,f,g){return this.push(\"a\",arguments)},carcTo:function(a,b,c,d,e){return this.push(\"A\",[a,a,0].concat(i.call(arguments,1)))},carcBy:function(a,b,c,d,e){return this.push(\"a\",[a,a,0].concat(i.call(arguments,1)))},bezierTo:function(a,b,c,d,e,f){return this.push(\"C\",i.call(arguments))},bezierBy:function(a,b,c,d,e,f){return this.push(\"c\",i.call(arguments))},close:function(){return this.push(\"z\")}}));return e(\"Path\",{base:f,constructor:function(a){this.callBase(\"path\"),a&&this.setPathData(a),this.node.setAttribute(\"fill\",g.defaults.fill),this.node.setAttribute(\"stroke\",g.defaults.stroke)},setPathData:function(a){return a=a||\"M0,0\",this.pathdata=h.pathToString(a),this.node.setAttribute(\"d\",this.pathdata),this.trigger(\"shapeupdate\",{type:\"pathdata\"}),this},getPathData:function(){return this.pathdata||\"\"},getDrawer:function(){return new j(this)},isClosed:function(){var a=this.getPathData();return!!~a.indexOf(\"z\")||!!~a.indexOf(\"Z\")}})}},_p[48]={value:function(a,b,c){var d=_p.r(59),e=_p.r(62);_p.r(68);return _p.r(11).createClass(\"PatternBrush\",{base:d,mixins:[e],constructor:function(a){this.callBase(\"pattern\",a),this.node.setAttribute(\"patternUnits\",\"userSpaceOnUse\")},setX:function(a){return this.x=a,this.node.setAttribute(\"x\",a),this},setY:function(a){return this.y=a,this.node.setAttribute(\"y\",a),this},setWidth:function(a){return this.width=a,this.node.setAttribute(\"width\",a),this},setHeight:function(a){return this.height=a,this.node.setAttribute(\"height\",a),this},getWidth:function(){return this.width},getHeight:function(){return this.height}})}},_p[49]={value:function(a,b,c){var d=_p.r(29);return _p.r(11).createClass(\"Pen\",{constructor:function(a,b){this.brush=a,this.width=b||1,this.linecap=null,this.linejoin=null,this.dashArray=null,this.opacity=1},getBrush:function(){return this.brush},setBrush:function(a){return this.brush=a,this},setColor:function(a){return this.setBrush(a)},getColor:function(){return this.brush instanceof d?this.brush:null},getWidth:function(){return this.width},setWidth:function(a){return this.width=a,this},getOpacity:function(){return this.opacity},setOpacity:function(a){this.opacity=a},getLineCap:function(){return this.linecap},setLineCap:function(a){return this.linecap=a,this},getLineJoin:function(){return this.linejoin},setLineJoin:function(a){return this.linejoin=a,this},getDashArray:function(){return this.dashArray},setDashArray:function(a){return this.dashArray=a,this},stroke:function(a){var b=a.node;b.setAttribute(\"stroke\",this.brush.toString()),b.setAttribute(\"stroke-width\",this.getWidth()),this.getOpacity()<1&&b.setAttribute(\"stroke-opacity\",this.getOpacity()),this.getLineCap()&&b.setAttribute(\"stroke-linecap\",this.getLineCap()),this.getLineJoin()&&b.setAttribute(\"stroke-linejoin\",this.getLineJoin()),this.getDashArray()&&b.setAttribute(\"stroke-dasharray\",this.getDashArray())}})}},_p[50]={value:function(a,b,c){return _p.r(11).createClass({base:_p.r(69),constructor:function(a,b,c){this.callBase([0,a],b,c)},getRadius:function(){return this.getSectionArray()[1]},setRadius:function(a){this.setSectionArray([0,a]);\n",
       "}})}},_p[51]={value:function(a,b,c){var d=_p.r(11).createClass(\"Point\",{constructor:function(a,b){this.x=a||0,this.y=b||0},offset:function(a,b){return 1==arguments.length&&(b=a.y,a=a.x),new d(this.x+a,this.y+b)},valueOf:function(){return[this.x,this.y]},toString:function(){return this.valueOf().join(\" \")},spof:function(){return new d((0|this.x)+.5,(0|this.y)+.5)},round:function(){return new d(0|this.x,0|this.y)},isOrigin:function(){return 0===this.x&&0===this.y}});return d.fromPolar=function(a,b,c){return\"rad\"!=c&&(b=b/180*Math.PI),new d(a*Math.cos(b),a*Math.sin(b))},d.parse=function(a){return a?a instanceof d?a:\"string\"==typeof a?d.parse(a.split(/\\s*[\\s,]\\s*/)):\"0\"in a&&\"1\"in a?new d(a[0],a[1]):void 0:new d},d}},_p[52]={value:function(a,b,c){return _p.r(11).createClass(\"PointContainer\",{base:_p.r(30),constructor:function(){this.callBase()},addPoint:function(a,b){return this.addItem.apply(this,arguments)},prependPoint:function(){return this.prependItem.apply(this,arguments)},appendPoint:function(){return this.appendItem.apply(this,arguments)},removePoint:function(a){return this.removeItem.apply(this,arguments)},addPoints:function(){return this.addItems.apply(this,arguments)},setPoints:function(){return this.setItems.apply(this,arguments)},getPoint:function(){return this.getItem.apply(this,arguments)},getPoints:function(){return this.getItems.apply(this,arguments)},getFirstPoint:function(){return this.getFirstItem.apply(this,arguments)},getLastPoint:function(){return this.getLastItem.apply(this,arguments)}})}},_p[53]={value:function(a,b,c){_p.r(12);return _p.r(11).createClass(\"Poly\",{base:_p.r(47),mixins:[_p.r(52)],constructor:function(a,b){this.callBase(),this.closeable=!!b,this.setPoints(a||[]),this.changeable=!0,this.update()},onContainerChanged:function(){this.changeable&&this.update()},update:function(){var a=this.getDrawer(),b=this.getPoints();if(a.clear(),!b.length)return this;a.moveTo(b[0]);for(var c,d=1,e=b.length;e>d;d++)c=b[d],a.lineTo(c);return this.closeable&&b.length>2&&a.close(),this}})}},_p[54]={value:function(a,b,c){return _p.r(11).createClass(\"Polygon\",{base:_p.r(53),constructor:function(a){this.callBase(a,!0)}})}},_p[55]={value:function(a,b,c){return _p.r(11).createClass(\"Polyline\",{base:_p.r(53),constructor:function(a){this.callBase(a)}})}},_p[56]={value:function(a,b,c){var d=_p.r(36);return _p.r(11).createClass(\"RadialGradientBrush\",{base:d,constructor:function(a){this.callBase(\"radialGradient\",a),this.setCenter(.5,.5),this.setFocal(.5,.5),this.setRadius(.5)},setCenter:function(a,b){return this.node.setAttribute(\"cx\",a),this.node.setAttribute(\"cy\",b),this},getCenter:function(){return{x:+this.node.getAttribute(\"cx\"),y:+this.node.getAttribute(\"cy\")}},setFocal:function(a,b){return this.node.setAttribute(\"fx\",a),this.node.setAttribute(\"fy\",b),this},getFocal:function(){return{x:+this.node.getAttribute(\"fx\"),y:+this.node.getAttribute(\"fy\")}},setRadius:function(a){return this.node.setAttribute(\"r\",a),this},getRadius:function(){return+this.node.getAttribute(\"r\")}})}},_p[57]={value:function(a,b,c){var d={},e=_p.r(12),f=_p.r(51),g=_p.r(26);e.extend(d,{formatRadius:function(a,b,c){var d=Math.floor(Math.min(a/2,b/2));return Math.min(d,c)}});var h=_p.r(11).createClass(\"Rect\",{base:_p.r(47),constructor:function(a,b,c,e,f){this.callBase(),this.x=c||0,this.y=e||0,this.width=a||0,this.height=b||0,this.radius=d.formatRadius(this.width,this.height,f||0),this.update()},update:function(){var a=this.x,b=this.y,c=this.width,d=this.height,e=this.radius,f=this.getDrawer().redraw();return e?(c-=2*e,d-=2*e,f.push(\"M\",a+e,b),f.push(\"h\",c),f.push(\"a\",e,e,0,0,1,e,e),f.push(\"v\",d),f.push(\"a\",e,e,0,0,1,-e,e),f.push(\"h\",-c),f.push(\"a\",e,e,0,0,1,-e,-e),f.push(\"v\",-d),f.push(\"a\",e,e,0,0,1,e,-e),f.push(\"z\")):(f.push(\"M\",a,b),f.push(\"h\",c),f.push(\"v\",d),f.push(\"h\",-c),f.push(\"z\")),f.done(),this},setWidth:function(a){return this.width=a,this.update()},setHeight:function(a){return this.height=a,this.update()},setSize:function(a,b){return this.width=a,this.height=b,this.update()},setBox:function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this.update()},getBox:function(){return new g(this.x,this.y,this.width,this.height)},getRadius:function(){return this.radius},setRadius:function(a){return this.radius=d.formatRadius(this.width,this.height,a||0),this.update()},getPosition:function(){return new f(this.x,this.y)},setPosition:function(a,b){if(1==arguments.length){var c=f.parse(arguments[0]);b=c.y,a=c.x}return this.x=a,this.y=b,this.update()},getWidth:function(){return this.width},getHeight:function(){return this.height},getPositionX:function(){return this.x},getPositionY:function(){return this.y},setPositionX:function(a){return this.x=a,this.update()},setPositionY:function(a){return this.y=a,this.update()}});return h}},_p[58]={value:function(a,b,c){var d=_p.r(51);return _p.r(11).createClass(\"RegularPolygon\",{base:_p.r(47),constructor:function(a,b,c,e){this.callBase(),this.radius=b||0,this.side=Math.max(a||3,3),arguments.length>2&&3==arguments.length&&(e=c.y,c=c.x),this.center=new d(c,e),this.draw()},getSide:function(){return this.side},setSide:function(a){return this.side=a,this.draw()},getRadius:function(){return this.radius},setRadius:function(a){return this.radius=a,this.draw()},draw:function(){var a,b=this.radius,c=this.side,e=2*Math.PI/c,f=this.getDrawer();for(f.clear(),f.moveTo(d.fromPolar(b,Math.PI/2,\"rad\").offset(this.center)),a=0;c>=a;a++)f.lineTo(d.fromPolar(b,e*a+Math.PI/2,\"rad\").offset(this.center));return f.close(),this}})}},_p[59]={value:function(a,b,c){var d=_p.r(68);return _p.r(11).createClass(\"Resource\",{constructor:function(a,b){this.callBase(),this.node=d.createNode(a),b&&b.addResource(this)},toString:function(){return\"url(#\"+this.node.id+\")\"}})}},_p[60]={value:function(a,b,c){return _p.r(11).createClass({base:_p.r(69),constructor:function(a,b){this.callBase([a,b],360,0)},getInnerRadius:function(){return this.getSectionArray()[0]},getOuterRadius:function(){return this.getSectionArray()[1]},setInnerRadius:function(a){this.setSectionArray([a,this.getOuterRadius()])},setOuterRadius:function(a){this.setSectionArray([this.getInnerRadius(),a])}})}},_p[61]={value:function(a,b,c){var d=_p.r(68),e=_p.r(12),f=_p.r(34),g=_p.r(67),h=_p.r(32),i=_p.r(44),j=(_p.r(49),Array.prototype.slice),k=_p.r(26),l=_p.r(11).createClass(\"Shape\",{mixins:[f,g,h],constructor:function(a){this.node=d.createNode(a),this.node.shape=this,this.transform={translate:null,rotate:null,scale:null,matrix:null},this.callMixin()},getId:function(){return this.node.id},setId:function(a){return this.node.id=a,this},getNode:function(){return this.node},getBoundaryBox:function(){var a;try{a=this.node.getBBox()}catch(b){a={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}return new k(a)},getRenderBox:function(a){var b=this.getBoundaryBox(),c=this.getTransform(a);return c.transformBox(b)},getWidth:function(){return this.getRenderBox().width},getHeight:function(){return this.getRenderBox().height},getSize:function(){var a=this.getRenderBox();return delete a.x,delete a.y,a},setOpacity:function(a){return this.node.setAttribute(\"opacity\",a),this},getOpacity:function(){var a=this.node.getAttribute(\"opacity\");return a?+a:1},setVisible:function(a){return a?this.node.removeAttribute(\"display\"):this.node.setAttribute(\"display\",\"none\"),this},getVisible:function(){this.node.getAttribute(\"display\")},hasAncestor:function(a){for(var b=this.container;b;){if(b===a)return!0;b=b.container}return!1},getTransform:function(a){return i.getCTM(this,a)},clearTransform:function(){return this.node.removeAttribute(\"transform\"),this.transform={translate:null,rotate:null,scale:null,matrix:null},this.trigger(\"shapeupdate\",{type:\"transform\"}),this},_applyTransform:function(){var a=this.transform,b=[];return a.translate&&b.push([\"translate(\",a.translate,\")\"]),a.rotate&&b.push([\"rotate(\",a.rotate,\")\"]),a.scale&&b.push([\"scale(\",a.scale,\")\"]),a.matrix&&b.push([\"matrix(\",a.matrix,\")\"]),this.node.setAttribute(\"transform\",e.flatten(b).join(\" \")),this},setMatrix:function(a){return this.transform.matrix=a,this._applyTransform()},setTranslate:function(a){return this.transform.translate=null!==a&&j.call(arguments)||null,this._applyTransform()},setRotate:function(a){return this.transform.rotate=null!==a&&j.call(arguments)||null,this._applyTransform()},setScale:function(a){return this.transform.scale=null!==a&&j.call(arguments)||null,this._applyTransform()},translate:function(a,b){var c=this.transform.matrix||new i;return void 0===b&&(b=0),this.transform.matrix=c.translate(a,b),this._applyTransform()},rotate:function(a){var b=this.transform.matrix||new i;return this.transform.matrix=b.rotate(a),this._applyTransform()},scale:function(a,b){var c=this.transform.matrix||new i;return void 0===b&&(b=a),this.transform.matrix=c.scale(a,b),this._applyTransform()},skew:function(a,b){var c=this.transform.matrix||new i;return void 0===b&&(b=a),this.transform.matrix=c.skew(a,b),this._applyTransform()},stroke:function(a,b){return a&&a.stroke?a.stroke(this):a?(this.node.setAttribute(\"stroke\",a.toString()),b&&this.node.setAttribute(\"stroke-width\",b)):null===a&&this.node.removeAttribute(\"stroe\"),this},fill:function(a){return a&&this.node.setAttribute(\"fill\",a.toString()),null===a&&this.node.removeAttribute(\"fill\"),this},setAttr:function(a,b){var c=this;return e.isObject(a)&&e.each(a,function(a,b){c.setAttr(b,a)}),void 0===b||null===b||\"\"===b?this.node.removeAttribute(a):this.node.setAttribute(a,b),this},getAttr:function(a){return this.node.getAttribute(a)}});return l}},_p[62]={value:function(a,b,c){var d=_p.r(30),e=_p.r(12),f=_p.r(11).createClass(\"ShapeContainer\",{base:d,isShapeContainer:!0,handleAdd:function(a,b){var c=this.getShapeNode();c.insertBefore(a.node,c.childNodes[b]||null),a.trigger(\"add\",{container:this}),a.notifyTreeModification&&a.notifyTreeModification(\"treeadd\",this)},handleRemove:function(a,b){var c=this.getShapeNode();c.removeChild(a.node),a.trigger(\"remove\",{container:this}),a.notifyTreeModification&&a.notifyTreeModification(\"treeremove\",this)},notifyTreeModification:function(a,b){this.eachItem(function(c,d){d.notifyTreeModification&&d.notifyTreeModification(a,b),d.trigger(a,{container:b})})},getShape:function(a){return this.getItem(a)},addShape:function(a,b){return this.addItem(a,b)},put:function(a){return this.addShape(a),a},appendShape:function(a){return this.addShape(a)},prependShape:function(a){return this.addShape(a,0)},replaceShape:function(a,b){var c=this.indexOf(b);if(-1!==c)return this.removeShape(c),this.addShape(a,c),this},addShapeBefore:function(a,b){var c=this.indexOf(b);return this.addShape(a,c)},addShapeAfter:function(a,b){var c=this.indexOf(b);return this.addShape(a,-1===c?void 0:c+1)},addShapes:function(a){return this.addItems(a)},removeShape:function(a){return this.removeItem(a)},getShapes:function(){return this.getItems()},getShapesByType:function(a){function b(d){a.toLowerCase()==d.getType().toLowerCase()&&c.push(d),d.isShapeContainer&&e.each(d.getShapes(),function(a){b(a)})}var c=[];return b(this),c},getShapeById:function(a){return this.getShapeNode().getElementById(a).shape},arrangeShape:function(a,b){return this.removeShape(a).addShape(a,b)},getShapeNode:function(){return this.shapeNode||this.node}}),g=_p.r(61);return _p.r(11).extendClass(g,{bringTo:function(a){return this.container.arrangeShape(this,a),this},bringFront:function(){return this.bringTo(this.container.indexOf(this)+1)},bringBack:function(){return this.bringTo(this.container.indexOf(this)-1)},bringTop:function(){return this.container.removeShape(this).addShape(this),this},bringRear:function(){return this.bringTo(0)},bringRefer:function(a,b){return a.container&&(this.remove&&this.remove(),a.container.addShape(this,a.container.indexOf(a)+(b||0))),this},bringAbove:function(a){return this.bringRefer(a)},bringBelow:function(a){return this.bringRefer(a,1)},replaceBy:function(a){return this.container&&(a.bringAbove(this),this.remove()),this}}),f}},_p[63]={value:function(a,b,c){var d=_p.r(44),e=_p.r(12),f=_p.r(51);return _p.r(11).createClass(\"ShapeEvent\",{constructor:function(a){var b=null;e.isObject(a.target)?e.extend(this,a):(this.type=a.type,b=a.target,b.correspondingUseElement&&(b=b.correspondingUseElement),this.originEvent=a,this.targetShape=b.shape||b.paper||a.currentTarget&&(a.currentTarget.shape||a.currentTarget.paper),a._kityParam&&e.extend(this,a._kityParam))},preventDefault:function(){var a=this.originEvent;return a?a.preventDefault?(a.preventDefault(),a.cancelable):(a.returnValue=!1,!0):!0},getPosition:function(a,b){if(!this.originEvent)return null;var c=this.originEvent.touches?this.originEvent.touches[b||0]:this.originEvent,e=this.targetShape,g=e.shapeNode||e.node,h=new f(c&&c.clientX||0,c&&c.clientY||0),i=d.transformPoint(h,g.getScreenCTM().inverse()),j=d.getCTM(e,a||\"view\").transformPoint(i);return j},stopPropagation:function(){var a=this.originEvent;return a?void(a.stopPropagation?a.stopPropagation():a.cancelBubble=!1):!0}})}},_p[64]={value:function(a,b,c){return _p.r(11).createClass(\"ShapePoint\",{base:_p.r(51),constructor:function(a,b){this.callBase(a,b)},setX:function(a){return this.setPoint(a,this.y)},setY:function(a){return this.setPoint(this.x,a)},setPoint:function(a,b){return this.x=a,this.y=b,this.update(),this},getPoint:function(){return this},update:function(){return this.container&&this.container.update&&this.container.update(),this}})}},_p[65]={value:{COLOR_STANDARD:{aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\"},EXTEND_STANDARD:{}}},_p[66]={value:function(a,b,c){var d={3:.2,5:.38196601125,6:.57735026919,8:.541196100146,10:.726542528005,12:.707106781187},e=_p.r(51);return _p.r(11).createClass(\"Star\",{base:_p.r(47),constructor:function(a,b,c,d,f){this.callBase(),this.vertex=a||3,this.radius=b||0,this.shrink=c,this.offset=d||new e(0,0),this.angleOffset=f||0,this.draw()},getVertex:function(){return this.vertex},setVertex:function(a){return this.vertex=a,this.draw()},getRadius:function(){return this.radius},setRadius:function(a){return this.radius=a,this.draw()},getShrink:function(){return this.shrink},setShrink:function(a){return this.shrink=a,this.draw()},getOffset:function(){return this.offset},setOffset:function(a){return this.offset=a,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(a){return this.angleOffset=a,this.draw()},draw:function(){var a,b,c=this.radius,f=this.radius*(this.shrink||d[this.vertex]||.5),g=this.vertex,h=this.offset,i=90,j=180/g,k=this.angleOffset,l=this.getDrawer();for(l.clear(),l.moveTo(e.fromPolar(f,i)),a=1;2*g>=a;a++)b=i+j*a,a%2?l.lineTo(e.fromPolar(c,b+k).offset(h)):l.lineTo(e.fromPolar(f,b));l.close()}})}},_p[67]={value:function(a,b,c){function d(a){return a.classList||(a.classList=new e(a)),a.classList}var e=_p.r(11).createClass(\"ClassList\",{constructor:function(a){this._node=a,this._list=a.className.toString().split(\" \")},_update:function(){this._node.className=this._list.join(\" \")},add:function(a){this._list.push(a),this._update()},remove:function(a){var b=this._list.indexOf(a);~b&&this._list.splice(b,1),this._update()},contains:function(a){return!!~this._list.indexOf(a)}});return _p.r(11).createClass(\"Styled\",{addClass:function(a){return d(this.node).add(a),this},removeClass:function(a){return d(this.node).remove(a),this},hasClass:function(a){return d(this.node).contains(a)},setStyle:function(a){if(2==arguments.length)return this.node.style[arguments[0]]=arguments[1],this;for(var b in a)a.hasOwnProperty(b)&&(this.node.style[b]=a[b]);return this}})}},_p[68]={value:function(a,b,c){var d=document,e=0,f={createNode:function(a){var b=d.createElementNS(f.ns,a);return b.id=\"kity_\"+a+\"_\"+e++,b},defaults:{stroke:\"none\",fill:\"none\"},xlink:\"http://www.w3.org/1999/xlink\",ns:\"http://www.w3.org/2000/svg\"};return f}},_p[69]={value:function(a,b,c){var d=_p.r(51);return _p.r(11).createClass(\"Sweep\",{base:_p.r(47),constructor:function(a,b,c){this.callBase(),this.sectionArray=a||[],this.angle=b||0,this.angleOffset=c||0,this.draw()},getSectionArray:function(){return this.sectionArray},setSectionArray:function(a){return this.sectionArray=a,this.draw()},getAngle:function(){return this.angle},setAngle:function(a){return this.angle=a,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(a){return this.angleOffset=a,this.draw()},draw:function(){var a,b=this.sectionArray;for(a=0;a<b.length;a+=2)this.drawSection(b[a],b[a+1]);return this},drawSection:function(a,b){var c=this.angle&&(this.angle%360?this.angle%360:360),e=this.angleOffset,f=e+c/2,g=e+c,h=0>c?0:1,i=this.getDrawer();return i.redraw(),0===c?void i.done():(i.moveTo(d.fromPolar(a,e)),i.lineTo(d.fromPolar(b,e)),b&&(i.carcTo(b,0,h,d.fromPolar(b,f)),i.carcTo(b,0,h,d.fromPolar(b,g))),i.lineTo(d.fromPolar(a,g)),a&&(i.carcTo(a,0,h,d.fromPolar(a,f)),i.carcTo(a,0,h,d.fromPolar(a,e))),i.close(),void i.done())}})}},_p[70]={value:function(a,b,c){function d(a){var b=a._cachedFontHash;if(i[b])return i[b];var c=a.getContent();a.setContent(\"百度Fex\");var d=a.getBoundaryBox(),e=a.getY();if(!d.height)return{top:0,bottom:0,middle:0};var f=e-d.y+ +a.node.getAttribute(\"dy\"),g=f-d.height;return a.setContent(c),i[b]={top:f,bottom:g,middle:(f+g)/2}}var e=_p.r(71),f=_p.r(62),g=_p.r(68),h=_p.r(12),i={};return _p.r(11).createClass(\"Text\",{base:e,mixins:[f],constructor:function(a){this.callBase(\"text\"),void 0!==a&&this.setContent(a),this._buildFontHash()},fixPosition:function(){this.__fixedPosition||this.setVerticalAlign(this.getVerticalAlign())},_buildFontHash:function(){var a=window.getComputedStyle(this.node);this._cachedFontHash=[a.fontFamily,a.fontSize,a.fontStretch,a.fontStyle,a.fontVariant,a.fontWeight].join(\"-\")},_fontChanged:function(a){var b=this._lastFont,c=h.extend({},b,a);if(!b)return this._lastFont=a,!0;var d=b.family!=c.family||b.size!=c.size||b.style!=c.style||b.weight!=c.weight;return this._lastFont=c,d},setX:function(a){return this.node.setAttribute(\"x\",a),this},setPosition:function(a,b){return this.setX(a).setY(b)},setY:function(a){return this.node.setAttribute(\"y\",a),this},getX:function(){return+this.node.getAttribute(\"x\")||0},getY:function(){return+this.node.getAttribute(\"y\")||0},setFont:function(a){return this.callBase(a),this._fontChanged(a)&&(this._buildFontHash(),this.setVerticalAlign(this.getVerticalAlign())),this},setTextAnchor:function(a){return this.node.setAttribute(\"text-anchor\",a),this},getTextAnchor:function(){return this.node.getAttribute(\"text-anchor\")||\"start\"},setVerticalAlign:function(a){return this.whenPaperReady(function(){var b;switch(a){case\"top\":b=d(this).top;break;case\"bottom\":b=d(this).bottom;break;case\"middle\":b=d(this).middle;break;default:b=0}b&&(this.__fixedPosition=!0),this.node.setAttribute(\"dy\",b)}),this.verticalAlign=a,this},getVerticalAlign:function(){return this.verticalAlign||\"baseline\"},setStartOffset:function(a){this.shapeNode!=this.node&&this.shapeNode.setAttribute(\"startOffset\",100*a+\"%\")},addSpan:function(a){return this.addShape(a),this},setPath:function(a){var b=this.shapeNode;if(this.shapeNode==this.node){for(b=this.shapeNode=g.createNode(\"textPath\");this.node.firstChild;)this.shapeNode.appendChild(this.node.firstChild);this.node.appendChild(b)}return b.setAttributeNS(g.xlink,\"xlink:href\",\"#\"+a.node.id),this.setTextAnchor(this.getTextAnchor()),this}})}},_p[71]={value:function(a,b,c){var d=_p.r(61);return _p.r(11).createClass(\"TextContent\",{base:d,constructor:function(a){this.callBase(a),this.shapeNode=this.shapeNode||this.node,this.shapeNode.setAttribute(\"text-rendering\",\"geometricPrecision\")},clearContent:function(){for(;this.shapeNode.firstChild;)this.shapeNode.removeChild(this.shapeNode.firstChild);return this},setContent:function(a){return this.shapeNode.textContent=a,this},getContent:function(){return this.shapeNode.textContent},appendContent:function(a){return this.shapeNode.textContent+=a,this},setSize:function(a){return this.setFontSize(a)},setFontSize:function(a){return this.setFont({size:a})},setFontFamily:function(a){return this.setFont({family:a})},setFontBold:function(a){return this.setFont({weight:a?\"bold\":\"normal\"})},setFontItalic:function(a){return this.setFont({style:a?\"italic\":\"normal\"})},setFont:function(a){var b=this.node;return[\"family\",\"size\",\"weight\",\"style\"].forEach(function(c){null===a[c]?b.removeAttribute(\"font-\"+c):a[c]&&b.setAttribute(\"font-\"+c,a[c])}),this},getExtentOfChar:function(a){return this.node.getExtentOfChar(a)},getRotationOfChar:function(a){return this.node.getRotationOfChar(a)},getCharNumAtPosition:function(a,b){return this.node.getCharNumAtPosition(this.node.viewportElement.createSVGPoint(a,b))}})}},_p[72]={value:function(a,b,c){var d=_p.r(71),e=_p.r(67);return _p.r(11).createClass(\"TextSpan\",{base:d,mixins:[e],constructor:function(a){this.callBase(\"tspan\"),this.setContent(a)}})}},_p[73]={value:function(a,b,c){var d=_p.r(68),e=_p.r(11),f=e.createClass(\"Use\",{base:_p.r(61),constructor:function(a){this.callBase(\"use\"),this.ref(a)},ref:function(a){if(!a)return this.node.removeAttributeNS(d.xlink,\"xlink:href\"),this;var b=a.getId();return b&&this.node.setAttributeNS(d.xlink,\"xlink:href\",\"#\"+b),\"none\"===a.node.getAttribute(\"fill\")&&a.node.removeAttribute(\"fill\"),\"none\"===a.node.getAttribute(\"stroke\")&&a.node.removeAttribute(\"stroke\"),this}}),g=_p.r(61);return e.extendClass(g,{use:function(){return new f(this)}}),f}},_p[74]={value:function(a,b,c){var d=_p.r(51),e=_p.r(44),f=_p.r(11).createClass(\"Vector\",{base:d,constructor:function(a,b){this.callBase(a,b)},square:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.square())},add:function(a){return new f(this.x+a.x,this.y+a.y)},minus:function(a){return new f(this.x-a.x,this.y-a.y)},dot:function(a){return this.x*a.x+this.y*a.y},project:function(a){return a.multipy(this.dot(a)/a.square())},normalize:function(a){return void 0===a&&(a=1),this.multipy(a/this.length())},multipy:function(a){return new f(this.x*a,this.y*a)},rotate:function(a,b){\"rad\"==b&&(a=a/Math.PI*180);var c=(new e).rotate(a).transformPoint(this);return new f(c.x,c.y)},vertical:function(){return new f(this.y,-this.x)},reverse:function(){return this.multipy(-1)},getAngle:function(){var a=this.length();if(0===a)return 0;var b=Math.acos(this.x/a),c=this.y>0?1:-1;return 180*c*b/Math.PI}});return f.fromPoints=function(a,b){return new f(b.x-a.x,b.y-a.y)},f.fromPolar=function(){var a=d.fromPolar.apply(d,arguments);return new f(a.x,a.y)},_p.r(11).extendClass(d,{asVector:function(){return new f(this.x,this.y)}}),f}},_p[75]={value:function(a,b,c){var d=_p.r(62),e=_p.r(76);return _p.r(11).createClass(\"View\",{mixins:[d,e],base:_p.r(75),constructor:function(){this.callBase(\"view\")}})}},_p[76]={value:function(a,b,c){return _p.r(11).createClass(\"ViewBox\",{getViewBox:function(){var a=this.node.getAttribute(\"viewBox\");return null===a?{x:0,y:0,width:this.node.clientWidth||this.node.parentNode.clientWidth,height:this.node.clientHeight||this.node.parentNode.clientHeight}:(a=a.split(\" \"),{x:+a[0],y:+a[1],width:+a[2],height:+a[3]})},setViewBox:function(a,b,c,d){return this.node.setAttribute(\"viewBox\",[a,b,c,d].join(\" \")),this}})}},_p[77]={value:function(a,b,c){var d={},e=_p.r(12);d.version=\"2.0.0\",e.extend(d,{createClass:_p.r(11).createClass,extendClass:_p.r(11).extendClass,Utils:e,Browser:_p.r(10),Box:_p.r(26),Bezier:_p.r(24),BezierPoint:_p.r(25),Circle:_p.r(27),Clip:_p.r(28),Color:_p.r(29),Container:_p.r(30),Curve:_p.r(31),Ellipse:_p.r(33),Group:_p.r(37),Gradient:_p.r(36),HyperLink:_p.r(38),Image:_p.r(39),Line:_p.r(40),LinearGradient:_p.r(41),Mask:_p.r(43),Matrix:_p.r(44),Marker:_p.r(42),Palette:_p.r(45),Paper:_p.r(46),Path:_p.r(47),Pattern:_p.r(48),Pen:_p.r(49),Point:_p.r(51),PointContainer:_p.r(52),Polygon:_p.r(54),Polyline:_p.r(55),Pie:_p.r(50),RadialGradient:_p.r(56),Resource:_p.r(59),Rect:_p.r(57),RegularPolygon:_p.r(58),Ring:_p.r(60),Shape:_p.r(61),ShapePoint:_p.r(64),ShapeContainer:_p.r(62),Sweep:_p.r(69),Star:_p.r(66),Text:_p.r(70),TextSpan:_p.r(72),Use:_p.r(73),Vector:_p.r(74),g:_p.r(35),Animator:_p.r(0),Easing:_p.r(1),OpacityAnimator:_p.r(4),RotateAnimator:_p.r(6),ScaleAnimator:_p.r(7),Timeline:_p.r(8),TranslateAnimator:_p.r(9),PathAnimator:_p.r(5),MotionAnimator:_p.r(3),requestFrame:_p.r(2).requestFrame,releaseFrame:_p.r(2).releaseFrame,Filter:_p.r(21),GaussianblurFilter:_p.r(22),ProjectionFilter:_p.r(23),ColorMatrixEffect:_p.r(14),CompositeEffect:_p.r(15),ConvolveMatrixEffect:_p.r(16),Effect:_p.r(17),GaussianblurEffect:_p.r(18),OffsetEffect:_p.r(19)}),c.exports=d}};var moduleMapping={\"expose-kity\":13};use(\"expose-kity\")}();</script><script>/*!\n",
       " * ====================================================\n",
       " * Kity Minder Core - v1.4.50 - 2018-09-17\n",
       " * https://github.com/fex-team/kityminder-core\n",
       " * GitHub: https://github.com/fex-team/kityminder-core.git \n",
       " * Copyright (c) 2018 Baidu FEX; Licensed BSD-3-Clause\n",
       " * ====================================================\n",
       " */\n",
       "\n",
       "!function(){function a(a){b.r([c[a]])}var b={r:function(a){if(b[a].inited)return b[a].value;if(\"function\"!=typeof b[a].value)return b[a].inited=!0,b[a].value;var c={exports:{}},d=b[a].value(null,c.exports,c);if(b[a].inited=!0,b[a].value=d,void 0!==d)return d;for(var e in c.exports)if(c.exports.hasOwnProperty(e))return b[a].inited=!0,b[a].value=c.exports,c.exports}};b[0]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute(\"markerUnits\",\"userSpaceOnUse\")});f.register(\"arc\",function(a,b,c,d,f){var h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=Math.abs,n=[],o=k.x>l.x?\"right\":\"left\";a.getMinder().getPaper().addResource(g),h=new e.Point(l.cx,l.cy),i=\"left\"==o?new e.Point(k.right+2,k.cy):new e.Point(k.left-2,k.cy),j=e.Vector.fromPoints(h,i),n.push(\"M\",h),n.push(\"A\",m(j.x),m(j.y),0,0,j.x*j.y>0?0:1,i),c.setMarker(g),g.dot.fill(f),c.setPathData(n)})}},b[1]={value:function(a,c,d){var e=b.r(17),f=b.r(11),g=(new e.Marker).pipe(function(){var a=7,b=new e.Circle(a-1);this.addShape(b),this.setRef(a-1,0).setViewBox(-a,-a,a+a,a+a).setWidth(a).setHeight(a),this.dot=b,this.node.setAttribute(\"markerUnits\",\"userSpaceOnUse\")});f.register(\"arc_tp\",function(a,b,c,d,f){var h=a.getLayoutBox(),i=b.getLayoutBox(),j=a.getIndex(),k=b.getChildren()[j+1];a.getIndex()>0&&(i=b.getChildren()[j-1].getLayoutBox());var l,m,n=(Math.abs,[]);h.x,i.x;a.getMinder().getPaper().addResource(g),l=new e.Point(i.cx,i.cy),m=new e.Point(h.cx,h.cy);var o=Math.sqrt(Math.pow(l.x-m.x,2)+Math.pow(l.y-m.y,2));if(o=0==a.getIndex()?.4*o:o,e.Vector.fromPoints(l,m),n.push(\"M\",l),n.push(\"A\",o,o,0,0,1,m),c.setMarker(g),g.dot.fill(f),c.setPathData(n),k&&k.getConnection()){var p=k.getConnection(),q=k.getLayoutBox(),r=new e.Point(q.cx,q.cy),s=Math.sqrt(Math.pow(m.x-r.x,2)+Math.pow(m.y-r.y,2));n=[],n.push(\"M\",m),n.push(\"A\",s,s,0,0,1,r),p.setMarker(g),g.dot.fill(f),p.setPathData(n)}})}},b[2]={value:function(a,c,d){b.r(17);b.r(11).register(\"bezier\",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut().normalize(),g=Math.round,h=Math.abs,i=[];if(i.push(\"M\",g(d.x),g(d.y)),h(f.x)>h(f.y)){var j=(e.x+d.x)/2;i.push(\"C\",j,d.y,j,e.y,e.x,e.y)}else{var k=(e.y+d.y)/2;i.push(\"C\",d.x,k,e.x,k,e.x,e.y)}c.setMarker(null),c.setPathData(i)})}},b[3]={value:function(a,c,d){b.r(17);b.r(11).register(\"fish-bone-master\",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=Math.abs,g=f(d.y-e.y),h=f(d.x-e.x),i=[];i.push(\"M\",d.x,d.y),i.push(\"h\",h-g),i.push(\"L\",e.x,e.y),c.setMarker(null),c.setPathData(i)})}},b[4]={value:function(a,c,d){b.r(17);b.r(11).register(\"l\",function(a,b,c){var d=b.getLayoutVertexOut(),e=a.getLayoutVertexIn(),f=b.getLayoutVectorOut(),g=[],h=Math.round,i=Math.abs;g.push(\"M\",d.round()),i(f.x)>i(f.y)?g.push(\"H\",h(e.x)):g.push(\"V\",e.y),g.push(\"L\",e),c.setPathData(g)})}},b[5]={value:function(a,c,d){b.r(17);b.r(11).register(\"poly\",function(a,b,c,d){var e=b.getLayoutVertexOut(),f=a.getLayoutVertexIn(),g=b.getLayoutVectorOut().normalize(),h=Math.round,i=Math.abs,j=[];switch(j.push(\"M\",h(e.x),h(e.y)),!0){case i(g.x)>i(g.y)&&g.x<0:j.push(\"h\",-b.getStyle(\"margin-left\")),j.push(\"v\",f.y-e.y),j.push(\"H\",f.x);break;case i(g.x)>i(g.y)&&g.x>=0:j.push(\"h\",b.getStyle(\"margin-right\")),j.push(\"v\",f.y-e.y),j.push(\"H\",f.x);break;case i(g.x)<=i(g.y)&&g.y<0:j.push(\"v\",-b.getStyle(\"margin-top\")),j.push(\"h\",f.x-e.x),j.push(\"V\",f.y);break;case i(g.x)<=i(g.y)&&g.y>=0:j.push(\"v\",b.getStyle(\"margin-bottom\")),j.push(\"h\",f.x-e.x),j.push(\"V\",f.y)}c.setMarker(null),c.setPathData(j)})}},b[6]={value:function(a,c,d){var e=b.r(17);b.r(11).register(\"under\",function(a,b,c,d,f){var g,h,i,j,k=a.getLayoutBox(),l=b.getLayoutBox(),m=(Math.abs,[]),n=k.x>l.x?\"right\":\"left\",o=(a.getStyle(\"connect-radius\"),k.bottom+3),p=\"sub\"==b.getType()?l.bottom+3:l.cy;\"right\"==n?(g=new e.Point(l.right,p),h=new e.Point(k.left-10,o),i=new e.Point(k.right,o)):(g=new e.Point(l.left,p),h=new e.Point(k.right+10,o),i=new e.Point(k.left,o)),j=(g.x+h.x)/2,m.push(\"M\",g),m.push(\"C\",j,g.y,j,h.y,h),m.push(\"L\",i),c.setMarker(null),c.setPathData(m)})}},b[7]={value:function(a,c,d){var e=b.r(17),f=b.r(19);if(-1!=location.href.indexOf(\"boxv\")){var g;Object.defineProperty(e.Box.prototype,\"visualization\",{get:function(){return g?g.setBox(this):null}}),f.registerInitHook(function(){this.on(\"paperrender\",function(){g=new e.Rect,g.fill(\"rgba(200, 200, 200, .5)\"),g.stroke(\"orange\"),this.getRenderContainer().addShape(g)})})}}},b[8]={value:function(a,c,d){var e=b.r(19),f={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},g={};e.registerInitHook(function(){this.setDefaultOptions(f),this.getOption(\"enableAnimation\")||this.disableAnimation()}),e.prototype.enableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&this.setOption(g[a])},e.prototype.disableAnimation=function(){for(var a in f)f.hasOwnProperty(a)&&(g[a]=this.getOption(a),this.setOption(a,0))}}},b[9]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(13)),h=0,i=e.createClass(\"Command\",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(a,b){throw new Error(\"Not Implement: Command.execute()\")},setContentChanged:function(a){this._isContentChange=!!a},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(a){this._isSelectionChange=!!a},isSelectionChanged:function(){return this._isContentChange},queryState:function(a){return h},queryValue:function(a){return 0},isNeedUndo:function(){return!0}});i.STATE_NORMAL=h,i.STATE_ACTIVE=1,i.STATE_DISABLED=-1,e.extendClass(f,{_getCommand:function(a){return this._commands[a.toLowerCase()]},_queryCommand:function(a,b,c){var d=this._getCommand(a);if(d){var e=d[\"query\"+b];if(e)return e.apply(d,[this].concat(c))}return 0},queryCommandState:function(a){return this._queryCommand(a,\"State\",[].slice.call(arguments,1))},queryCommandValue:function(a){return this._queryCommand(a,\"Value\",[].slice.call(arguments,1))},execCommand:function(a){if(!a)return null;a=a.toLowerCase();var b,c,d,e,f=[].slice.call(arguments,1),h=this;return b=this._getCommand(a),e={command:b,commandName:a.toLowerCase(),commandArgs:f},!(!b||!~this.queryCommandState(a))&&(this._hasEnterExecCommand?(d=b.execute.apply(b,[h].concat(f)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,c=this._fire(new g(\"beforeExecCommand\",e,!0)),c||(this._fire(new g(\"preExecCommand\",e,!1)),d=b.execute.apply(b,[h].concat(f)),this._fire(new g(\"execCommand\",e,!1)),b.isContentChanged()&&this._firePharse(new g(\"contentchange\")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===d?null:d)}}),d.exports=i}},b[10]={value:function(a,c,d){function e(a){switch(a.version||(a.root?\"1.4.0\":\"1.1.3\")){case\"1.1.3\":h(a);case\"1.2.0\":case\"1.2.1\":g(a);case\"1.3.0\":case\"1.3.1\":case\"1.3.2\":case\"1.3.3\":case\"1.3.4\":case\"1.3.5\":i(a)}return a}function f(a,b){b(a),a.children&&a.children.forEach(function(a){f(a,b)})}function g(a){f(a,function(a){var b=a.data;delete b.layout_bottom_offset,delete b.layout_default_offset,delete b.layout_filetree_offset})}function h(a){var b=a.data.currentstyle;delete a.data.currentstyle,\"bottom\"==b?(a.template=\"structure\",a.theme=\"snow\"):\"default\"==b&&(a.template=\"default\",a.theme=\"classic\"),f(a,function(a){var b=a.data;\"PriorityIcon\"in b&&(b.priority=b.PriorityIcon,delete b.PriorityIcon),\"ProgressIcon\"in b&&(b.progress=1+(b.ProgressIcon-1<<1),delete b.ProgressIcon),delete b.point,delete b.layout})}function i(a){a.root={data:a.data,children:a.children},delete a.data,delete a.children}b.r(33);return e}},b[11]={value:function(a,c,d){function e(a,b){k[a]=b}var f=b.r(17),g=b.r(33),h=b.r(20),i=b.r(19),j=b.r(21),k={};e(\"default\",function(a,b,c){c.setPathData([\"M\",b.getLayoutVertexOut(),\"L\",a.getLayoutVertexIn()])}),f.extendClass(j,{getConnect:function(){return this.data.connect||\"default\"},getConnectProvider:function(){return k[this.getConnect()]||k.default},getConnection:function(){return this._connection||null}}),f.extendClass(i,{getConnectContainer:function(){return this._connectContainer},createConnect:function(a){if(!a.isRoot()){var b=new f.Path;a._connection=b,this._connectContainer.addShape(b),this.updateConnect(a)}},removeConnect:function(a){var b=this;a.traverse(function(a){b._connectContainer.removeShape(a._connection),a._connection=null})},updateConnect:function(a){var b=a._connection,c=a.parent;if(c&&b){if(c.isCollapsed())return void b.setVisible(!1);b.setVisible(!0);var d=a.getConnectProvider(),e=a.getStyle(\"connect-color\")||\"white\",f=a.getStyle(\"connect-width\")||2;b.stroke(e,f),d(a,c,b,f,e),f%2==0?b.setTranslate(.5,.5):b.setTranslate(0,0)}}}),h.register(\"Connect\",{init:function(){this._connectContainer=(new f.Group).setId(g.uuid(\"minder_connect_group\")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(a){this.createConnect(a.node)},nodedetach:function(a){this.removeConnect(a.node)},\"layoutapply layoutfinish noderender\":function(a){this.updateConnect(a.node)}}}),c.register=e}},b[12]={value:function(a,c,d){function e(a,b){l[a]=b;for(var c in l)l.hasOwnProperty(c)&&(l[c]=l[c],l[c].name=c)}function f(a){return void 0===a?l:l[a]||null}var g=b.r(17),h=(b.r(33),b.r(19)),i=(b.r(21),b.r(13)),j=b.r(10),k=b.r(25),l={};c.registerProtocol=e,c.getRegisterProtocol=f,g.extendClass(h,{setup:function(a){if(\"string\"==typeof a&&(a=document.querySelector(a)),a){var b=a.getAttribute(\"minder-data-type\");if(b in l){var c=a.textContent;a.textContent=null,this.renderTo(a),this.importData(b,c)}return this}},exportJson:function(){function a(b){var c={};c.data=b.getData();var d=b.getChildren();c.children=[];for(var e=0;e<d.length;e++)c.children.push(a(d[e]));return c}var b={root:a(this.getRoot())};return b.template=this.getTemplate(),b.theme=this.getTheme(),b.version=h.version,JSON.parse(JSON.stringify(b))},Text2Children:function(a,b){function c(a){return\"\"===a&&!/\\S/.test(a)}function d(a){return{data:{text:a.replace(/^(\\t|\\x20{4})+/,\"\").replace(/(\\t|\\x20{4})+$/,\"\")},children:[]}}function e(a){for(var b=0;m.test(a);)a=a.replace(m,\"\"),b++;return b}function f(a,b){a.children.push(b)}function g(a,b){for(var c=0,d=b.length;c<d;c++){var e=q.createNode(null,a);e.setData(\"text\",b[c].data.text||\"\"),g(e,b[c].children)}}if(a instanceof kityminder.Node){for(var h,i=[],j={},k=0,l=/\\r|\\n|\\r\\n/,m=/^(\\t|\\x20{4})/,n=b.split(l),o=\"\",p=0,q=this;void 0!==(o=n[p++]);)if(o=o.replace(/&nbsp;/g,\"\"),!c(o))if(k=e(o),h=d(o),0===k)j={},i.push(h),j[0]=i[i.length-1];else{if(!j[k-1])throw new Error(\"Invalid local format\");f(j[k-1],h),j[k]=h}g(a,i),q.refresh()}},exportNode:function(a){var b={};b.data=a.getData();var c=a.getChildren();b.children=[];for(var d=0;d<c.length;d++)b.children.push(this.exportNode(c[d]));return b},importNode:function(a,b){var c=b.data;a.data={};for(var d in c)a.setData(d,c[d]);for(var e=b.children||[],f=0;f<e.length;f++){var g=this.createNode(null,a);this.importNode(g,e[f])}return a},importJson:function(a){if(a){for(this._fire(new i(\"preimport\",null,!1));this._root.getChildren().length;)this.removeNode(this._root.getChildren()[0]);return a=j(a),this.importNode(this._root,a.root),this.setTemplate(a.template||\"default\"),this.setTheme(a.theme||null),this.refresh(),this.fire(\"import\"),this._firePharse({type:\"contentchange\"}),this._interactChange(),this}},exportData:function(a,b){var c,d;return c=this.exportJson(),!a||(d=l[a])&&d.encode?(this._fire(new i(\"beforeexport\",{json:c,protocolName:a,protocol:d})),k.resolve(d.encode(c,this,b))):k.reject(new Error(\"Not supported protocol:\"+a))},importData:function(a,b,c){var d,e=this;if(a&&(!(d=l[a])||!d.decode))return k.reject(new Error(\"Not supported protocol:\"+a));var f={local:b,protocolName:a,protocol:d};return this._fire(new i(\"beforeimport\",f)),k.resolve(d.decode(b,this,c)).then(function(a){return e.importJson(a),a})},decodeData:function(a,b,c){var d;if(a&&(!(d=l[a])||!d.decode))return k.reject(new Error(\"Not supported protocol:\"+a));var e={local:b,protocolName:a,protocol:d};return this._fire(new i(\"beforeimport\",e)),k.resolve(d.decode(b,this,c))}})}},b[13]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=e.createClass(\"MindEvent\",{constructor:function(a,b,c){b=b||{},b.getType&&\"ShapeEvent\"==b.getType()?(this.kityEvent=b,this.originEvent=b.originEvent):b.target&&b.preventDefault?this.originEvent=b:e.Utils.extend(this,b),this.type=a,this._canstop=c||!1},getPosition:function(a){if(this.kityEvent)return a&&\"minder\"!=a?this.kityEvent.getPosition.call(this.kityEvent,a):this.kityEvent.getPosition(this.minder.getRenderContainer())},getTargetNode:function(){var a=this.kityEvent&&this.kityEvent.targetShape;if(!a)return null;for(;!a.minderNode&&a.container;)a=a.container;var b=a.minderNode;return b&&a.getOpacity()<1?null:b||null},stopPropagation:function(){this._stoped=!0},stopPropagationImmediately:function(){this._immediatelyStoped=!0,this._stoped=!0},shouldStopPropagation:function(){return this._canstop&&this._stoped},shouldStopPropagationImmediately:function(){return this._canstop&&this._immediatelyStoped},preventDefault:function(){this.originEvent.preventDefault()},isRightMB:function(){var a=!1;return!!this.originEvent&&(\"which\"in this.originEvent?a=3==this.originEvent.which:\"button\"in this.originEvent&&(a=2==this.originEvent.button),a)},getKeyCode:function(){var a=this.originEvent;return a.keyCode||a.which}});f.registerInitHook(function(a){this._initEvents()}),e.extendClass(f,{_initEvents:function(){this._eventCallbacks={}},_resetEvents:function(){this._initEvents(),this._bindEvents()},_bindEvents:function(){this._paper.on(\"click dblclick mousedown contextmenu mouseup mousemove mouseover mousewheel DOMMouseScroll touchstart touchmove touchend dragenter dragleave drop\",this._firePharse.bind(this)),window&&window.addEventListener(\"resize\",this._firePharse.bind(this))},dispatchKeyEvent:function(a){this._firePharse(a)},_firePharse:function(a){var b,c,d;\"DOMMouseScroll\"==a.type&&(a.type=\"mousewheel\",a.wheelDelta=a.originEvent.wheelDelta=-10*a.originEvent.detail,a.wheelDeltaX=a.originEvent.mozMovementX,a.wheelDeltaY=a.originEvent.mozMovementY),b=new g(\"before\"+a.type,a,!0),this._fire(b)||(c=new g(\"pre\"+a.type,a,!0),d=new g(a.type,a,!0),(this._fire(c)||this._fire(d))&&this._fire(new g(\"after\"+a.type,a,!1)))},_interactChange:function(a){var b=this;b._interactScheduled||(setTimeout(function(){b._fire(new g(\"interactchange\")),b._interactScheduled=!1},100),b._interactScheduled=!0)},_listen:function(a,b){(this._eventCallbacks[a]||(this._eventCallbacks[a]=[])).push(b)},_fire:function(a){a.minder=this;var b=this.getStatus(),c=this._eventCallbacks[a.type.toLowerCase()]||[];if(b&&(c=c.concat(this._eventCallbacks[b+\".\"+a.type.toLowerCase()]||[])),0!==c.length){for(var d=(this.getStatus(),0);d<c.length&&(c[d].call(this,a),!a.shouldStopPropagationImmediately());d++);return a.shouldStopPropagation()}},on:function(a,b){var c=this;return a.split(/\\s+/).forEach(function(a){c._listen(a.toLowerCase(),b)}),this},off:function(a,b){var c,d,e,f,g=a.split(/\\s+/);for(c=0;c<g.length;c++)if(e=this._eventCallbacks[g[c].toLowerCase()]){for(f=null,d=0;d<e.length;d++)e[d]==b&&(f=d);null!==f&&e.splice(f,1)}},fire:function(a,b){var c=new g(a,b);return this._fire(c),this}}),d.exports=g}},b[14]={value:function(a,c,d){var e=b.r(17),f=b.r(19);f.registerInitHook(function(){this.on(\"beforemousedown\",function(a){this.focus(),a.preventDefault()}),this.on(\"paperrender\",function(){this.focus()})}),e.extendClass(f,{focus:function(){if(!this.isFocused()){this._renderTarget.classList.add(\"focus\"),this.renderNodeBatch(this.getSelectedNodes())}return this.fire(\"focus\"),this},blur:function(){if(this.isFocused()){this._renderTarget.classList.remove(\"focus\"),this.renderNodeBatch(this.getSelectedNodes())}return this.fire(\"blur\"),this},isFocused:function(){var a=this._renderTarget;return a&&a.classList.contains(\"focus\")}})}},b[15]={value:function(a,b,c){var d={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,direction:{37:1,38:1,39:1,40:1},Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,\"`\":192,\"=\":187,\"-\":189,\"/\":191,\".\":190,controlKeys:{16:1,17:1,18:1,20:1,91:1,224:1},notContentChange:{13:1,9:1,33:1,34:1,35:1,36:1,16:1,17:1,18:1,20:1,91:1,37:1,38:1,39:1,40:1,113:1,114:1,115:1,144:1,27:1},isSelectedNodeKey:{37:1,38:1,39:1,40:1,13:1,9:1}};for(var e in d)d.hasOwnProperty(e)&&(d[e.toLowerCase()]=d[e]);var f=\"a\".charCodeAt(0);\"abcdefghijklmnopqrstuvwxyz\".split(\"\").forEach(function(a){d[a]=a.charCodeAt(0)-f+65});var g=9;do{d[g.toString()]=g+48}while(--g);c.exports=d}},b[16]={value:function(a,c,d){function e(a,b,c){b.split(\" \").forEach(function(b){a.addEventListener(b,c,!1)})}var f=b.r(17),g=(b.r(33),b.r(19));g.registerInitHook(function(a){this.setDefaultOptions({enableKeyReceiver:!0}),this.getOption(\"enableKeyReceiver\")&&this.on(\"paperrender\",function(){this._initKeyReceiver()})}),f.extendClass(g,{_initKeyReceiver:function(){if(!this._keyReceiver){var a=this._keyReceiver=document.createElement(\"input\");a.classList.add(\"km-receiver\");this._renderTarget.appendChild(a);var b=this;e(a,\"keydown keyup keypress copy paste blur focus input\",function(c){switch(c.type){case\"blur\":b.blur();break;case\"focus\":b.focus();break;case\"input\":a.value=null}b._firePharse(c),c.preventDefault()}),this.on(\"focus\",function(){a.select(),a.focus()}),this.on(\"blur\",function(){a.blur()}),this.isFocused()&&(a.select(),a.focus())}}})}},b[17]={value:function(a,b,c){c.exports=window.kity}},b[18]={value:function(a,c,d){function e(a,b){k[a]=b,f=f||a}var f,g=b.r(17),h=b.r(33),i=b.r(19),j=b.r(21),k=(b.r(13),b.r(9),{}),l=g.createClass(\"Layout\",{doLayout:function(a,b){throw new Error(\"Not Implement: Layout.doLayout()\")},align:function(a,b,c){var d=this;c=c||0,a.forEach(function(a){var e=d.getTreeBox([a]),f=a.getLayoutTransform();switch(b){case\"left\":return f.translate(c-e.left,0);case\"right\":return f.translate(c-e.right,0);case\"top\":return f.translate(0,c-e.top);case\"bottom\":return f.translate(0,c-e.bottom)}})},stack:function(a,b,c){var d=this,e=0;return c=c||function(a,b,c){return a.getStyle({x:\"margin-right\",y:\"margin-bottom\"}[c])+b.getStyle({x:\"margin-left\",y:\"margin-top\"}[c])},a.forEach(function(a,f,g){var h=d.getTreeBox([a]),i={x:h.width,y:h.height}[b],j={x:h.left,y:h.top}[b],k=a.getLayoutTransform();\"x\"==b?k.translate(e-j,0):k.translate(0,e-j),e+=i,g[f+1]&&(e+=c(a,g[f+1],b))}),e},move:function(a,b,c){a.forEach(function(a){a.getLayoutTransform().translate(b,c)})},getBranchBox:function(a){var b,c,d,e,f=new g.Box;for(b=0;b<a.length;b++)c=a[b],d=c.getLayoutTransform(),e=c.getContentBox(),f=f.merge(d.transformBox(e));return f},getTreeBox:function(a){var b,c,d,e,f=new g.Box;for(a instanceof Array||(a=[a]),b=0;b<a.length;b++)c=a[b],d=c.getLayoutTransform(),e=c.getContentBox(),c.isExpanded()&&c.children.length&&(e=e.merge(this.getTreeBox(c.children))),f=f.merge(d.transformBox(e));return f},getOrderHint:function(a){return[]}});l.register=e,i.registerInitHook(function(a){this.refresh()}),h.extend(i,{getLayoutList:function(){return k},getLayoutInstance:function(a){var b=k[a];if(!b)throw new Error(\"Missing Layout: \"+a);return new b}}),g.extendClass(j,{getLayout:function(){var a=this.getData(\"layout\");return a=a||(this.isRoot()?f:this.parent.getLayout())},setLayout:function(a){return a&&(\"inherit\"==a?this.setData(\"layout\"):this.setData(\"layout\",a)),this},layout:function(a){return this.setLayout(a).getMinder().layout(),this},getLayoutInstance:function(){return i.getLayoutInstance(this.getLayout())},getOrderHint:function(a){return this.parent.getLayoutInstance().getOrderHint(this)},getLayoutTransform:function(){return this._layoutTransform||new g.Matrix},getGlobalLayoutTransformPreview:function(){var a=this.parent?this.parent.getLayoutTransform():new g.Matrix,b=this.getLayoutTransform(),c=this.getLayoutOffset();return c&&(b=b.clone().translate(c.x,c.y)),a.merge(b)},getLayoutPointPreview:function(){return this.getGlobalLayoutTransformPreview().transformPoint(new g.Point)},getGlobalLayoutTransform:function(){return this._globalLayoutTransform?this._globalLayoutTransform:this.parent?this.parent.getGlobalLayoutTransform():new g.Matrix},setLayoutTransform:function(a){return this._layoutTransform=a,this},setGlobalLayoutTransform:function(a){return this.getRenderContainer().setMatrix(this._globalLayoutTransform=a),this},setVertexIn:function(a){this._vertexIn=a},setVertexOut:function(a){this._vertexOut=a},getVertexIn:function(){return this._vertexIn||new g.Point},getVertexOut:function(){return this._vertexOut||new g.Point},getLayoutVertexIn:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexIn())},getLayoutVertexOut:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexOut())},setLayoutVectorIn:function(a){return this._layoutVectorIn=a,this},setLayoutVectorOut:function(a){return this._layoutVectorOut=a,this},getLayoutVectorIn:function(){return this._layoutVectorIn||new g.Vector},getLayoutVectorOut:function(){return this._layoutVectorOut||new g.Vector},getLayoutBox:function(){return this.getGlobalLayoutTransform().transformBox(this.getContentBox())},getLayoutPoint:function(){return this.getGlobalLayoutTransform().transformPoint(new g.Point)},getLayoutOffset:function(){if(!this.parent)return new g.Point;var a=this.getData(\"layout_\"+this.parent.getLayout()+\"_offset\");return a?new g.Point(a.x,a.y):new g.Point},setLayoutOffset:function(a){return this.parent?(this.setData(\"layout_\"+this.parent.getLayout()+\"_offset\",a?{x:a.x,y:a.y}:void 0),this):this},hasLayoutOffset:function(){return!!this.getData(\"layout_\"+this.parent.getLayout()+\"_offset\")},resetLayoutOffset:function(){return this.setLayoutOffset(null)},getLayoutRoot:function(){return this.isLayoutRoot()?this:this.parent.getLayoutRoot()},isLayoutRoot:function(){return this.getData(\"layout\")||this.isRoot()}}),g.extendClass(i,{layout:function(){function a(b,c){b.isExpanded(),b.children.forEach(function(b){a(b,c)}),b.getLayoutInstance().doLayout(b,b.getChildren(),c)}var b=this.getOption(\"layoutAnimationDuration\");this.getRoot().traverse(function(a){a.setLayoutTransform(null)}),a(this.getRoot(),1),a(this.getRoot(),2);var c=this;return this.applyLayoutResult(this.getRoot(),b,function(){setTimeout(function(){c.fire(\"layoutallfinish\")},0)}),this.fire(\"layout\")},refresh:function(){return this.getRoot().renderTree(),this.layout().fire(\"contentchange\")._interactChange(),this},applyLayoutResult:function(a,b,c){function d(){--i||c&&c()}function e(a,b){a.setGlobalLayoutTransform(b),h.fire(\"layoutapply\",{node:a,matrix:b})}function f(a,c){var i=a.getLayoutTransform().merge(c.clone()),j=a.getGlobalLayoutTransform()||new g.Matrix,k=a.getLayoutOffset();i.translate(k.x,k.y),i.m.e=Math.round(i.m.e),i.m.f=Math.round(i.m.f),a._layoutTimeline&&(a._layoutTimeline.stop(),a._layoutTimeline=null),b?a._layoutTimeline=new g.Animator(j,i,e).start(a,b,\"ease\").on(\"finish\",function(){setTimeout(function(){e(a,i),h.fire(\"layoutfinish\",{node:a,matrix:i}),d()},150)}):(e(a,i),h.fire(\"layoutfinish\",{node:a,matrix:i}),d());for(var l=0;l<a.children.length;l++)f(a.children[l],i)}a=a||this.getRoot();var h=this,i=a.getComplex();return i>200&&(b=0),f(a,a.parent?a.parent.getGlobalLayoutTransform():new g.Matrix),this}}),d.exports=l}},b[19]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=[],h=e.createClass(\"Minder\",{constructor:function(a){this._options=f.extend({},a);for(var b,c=g.slice();c.length;)\"function\"==typeof(b=c.shift())&&b.call(this,this._options);this.fire(\"finishInitHook\")}});h.version=\"1.4.43\",h.registerInitHook=function(a){g.push(a)},d.exports=h}},b[20]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h={};c.register=function(a,b){h[a]=b},g.registerInitHook(function(){this._initModules()}),e.extendClass(g,{_initModules:function(){var a=h,b=this._options.modules||f.keys(a);this._commands={},this._query={},this._modules={},this._rendererClasses={};var c,d,e,g,i,j,k,l=this;for(c=0;c<b.length;c++)if(d=b[c],a[d]&&(g=\"function\"==typeof a[d]?a[d].call(l):a[d],this._modules[d]=g,g)){g.defaultOptions&&l.setDefaultOptions(g.defaultOptions),g.init&&g.init.call(l,this._options),i=g.commands;for(d in i)this._commands[d.toLowerCase()]=new i[d];if(j=g.events)for(e in j)l.on(e,j[e]);if(k=g.renderers)for(e in k)this._rendererClasses[e]=this._rendererClasses[e]||[],f.isArray(k[e])?this._rendererClasses[e]=this._rendererClasses[e].concat(k[e]):this._rendererClasses[e].push(k[e]);g.commandShortcutKeys&&this.addCommandShortcutKeys(g.commandShortcutKeys)}},_garbage:function(){for(this.clearSelect();this._root.getChildren().length;)this._root.removeChild(0)},destroy:function(){var a=this._modules;this._resetEvents(),this._garbage();for(var b in a)a[b].destroy&&a[b].destroy.call(this)},reset:function(){var a=this._modules;this._garbage();for(var b in a)a[b].reset&&a[b].reset.call(this)}})}},b[21]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h=e.createClass(\"MinderNode\",{constructor:function(a){this.parent=null,this.root=this,this.children=[],this.data={id:f.guid(),created:+new Date},this.initContainers(),f.isString(a)?this.setText(a):f.isObject(a)&&f.extend(this.data,a)},initContainers:function(){this.rc=(new e.Group).setId(f.uuid(\"minder_node\")),this.rc.minderNode=this},isRoot:function(){return this.root===this},isLeaf:function(){return 0===this.children.length},getRoot:function(){return this.root||this},getParent:function(){return this.parent},getSiblings:function(){var a=this.parent.children,b=[],c=this;return a.forEach(function(a){a!=c&&b.push(a)}),b},getLevel:function(){for(var a=0,b=this.parent;b;)a++,b=b.parent;return a},getComplex:function(){var a=0;return this.traverse(function(){a++}),a},getType:function(a){return this.type=[\"root\",\"main\",\"sub\"][Math.min(this.getLevel(),2)],this.type},isAncestorOf:function(a){for(var b=a.parent;b;){if(b==this)return!0;b=b.parent}return!1},getData:function(a){return a?this.data[a]:this.data},setData:function(a,b){if(\"object\"==typeof a){var c=a;for(a in c)c.hasOwnProperty(a)&&(this.data[a]=c[a])}else this.data[a]=b;return this},setText:function(a){return this.data.text=a},getText:function(){return this.data.text||null},preTraverse:function(a,b){var c=this.getChildren();b||a(this);for(var d=0;d<c.length;d++)c[d].preTraverse(a)},postTraverse:function(a,b){for(var c=this.getChildren(),d=0;d<c.length;d++)c[d].postTraverse(a);b||a(this)},traverse:function(a,b){return this.postTraverse(a,b)},getChildren:function(){return this.children},getIndex:function(){return this.parent?this.parent.children.indexOf(this):-1},insertChild:function(a,b){void 0===b&&(b=this.children.length),a.parent&&a.parent.removeChild(a),a.parent=this,a.root=this.root,this.children.splice(b,0,a)},appendChild:function(a){return this.insertChild(a)},prependChild:function(a){return this.insertChild(a,0)},removeChild:function(a){var b,c=a;a instanceof h&&(c=this.children.indexOf(a)),c>=0&&(b=this.children.splice(c,1)[0],b.parent=null,b.root=b)},clearChildren:function(){this.children=[]},getChild:function(a){return this.children[a]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(a){return h.getCommonAncestor(this,a)},contains:function(a){return this==a||this.isAncestorOf(a)},clone:function(){var a=new h;return a.data=f.clone(this.data),this.children.forEach(function(b){a.appendChild(b.clone())}),a},compareTo:function(a){if(!f.comparePlainObject(this.data,a.data))return!1;if(!f.comparePlainObject(this.temp,a.temp))return!1;if(this.children.length!=a.children.length)return!1;for(var b=0;this.children[b];){if(!this.children[b].compareTo(a.children[b]))return!1;b++}return!0},getMinder:function(){return this.getRoot().minder}});h.getCommonAncestor=function(a,b){if(a instanceof Array)return h.getCommonAncestor.apply(this,a);switch(arguments.length){case 1:return a.parent||a;case 2:if(a.isAncestorOf(b))return a;if(b.isAncestorOf(a))return b;for(var c=a.parent;c&&!c.isAncestorOf(b);)c=c.parent;return c;default:return Array.prototype.reduce.call(arguments,function(a,b){return h.getCommonAncestor(a,b)},a)}},e.extendClass(g,{getRoot:function(){return this._root},setRoot:function(a){this._root=a,a.minder=this},getAllNode:function(){var a=[];return this.getRoot().traverse(function(b){a.push(b)}),a},getNodeById:function(a){return this.getNodesById([a])[0]},getNodesById:function(a){var b=this.getAllNode(),c=[];return b.forEach(function(b){-1!=a.indexOf(b.getData(\"id\"))&&c.push(b)}),c},createNode:function(a,b,c){var d=new h(a);return this.fire(\"nodecreate\",{node:d,parent:b,index:c}),this.appendNode(d,b,c),d},appendNode:function(a,b,c){return b&&b.insertChild(a,c),this.attachNode(a),this},removeNode:function(a){a.parent&&(a.parent.removeChild(a),this.detachNode(a),this.fire(\"noderemove\",{node:a}))},attachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!0,b.addShape(a.getRenderContainer())}),b.addShape(a.getRenderContainer()),this.fire(\"nodeattach\",{node:a})},detachNode:function(a){var b=this.getRenderContainer();a.traverse(function(a){a.attached=!1,b.removeShape(a.getRenderContainer())}),this.fire(\"nodedetach\",{node:a})},getMinderTitle:function(){return this.getRoot().getText()}}),d.exports=h}},b[22]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(a){this._defaultOptions={}}),e.extendClass(g,{setDefaultOptions:function(a){return f.extend(this._defaultOptions,a),this},getOption:function(a){return a?a in this._options?this._options[a]:this._defaultOptions[a]:f.extend({},this._defaultOptions,this._options)},setOption:function(a,b){this._options[a]=b}})}},b[23]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19);g.registerInitHook(function(){this._initPaper()}),e.extendClass(g,{_initPaper:function(){this._paper=new e.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(a){a.preventDefault()},this._paper.shapeNode.setAttribute(\"transform\",\"translate(0.5, 0.5)\"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new e.Group).setId(f.uuid(\"minder\")),this._paper.addShape(this._rc)},renderTo:function(a){if(\"string\"==typeof a&&(a=document.querySelector(a)),a){if(\"script\"==a.tagName.toLowerCase()){var b=document.createElement(\"div\");b.id=a.id,b.class=a.class,a.parentNode.insertBefore(b,a),a.parentNode.removeChild(a),a=b}a.classList.add(\"km-view\"),this._paper.renderTo(this._renderTarget=a),this._bindEvents(),this.fire(\"paperrender\")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},b[24]={value:function(a,c,d){function e(a,b,c,d){return c=a.createNode(b.data,c,d),b.children.forEach(function(b,d){e(a,b,c,d)}),c}function f(a,b){var c=b.path.split(\"/\");c.shift();var d,f=c.shift();if(\"root\"==f){var g=c.indexOf(\"data\");if(g>-1){f=\"data\";var h=c.splice(g+1);b.dataPath=h}else f=\"node\";d=a.getRoot();for(var i,j;i=c.shift();)\"children\"!=i&&(void 0!==j&&(d=d.getChild(j)),j=+i);b.index=j,b.node=d}switch(b.express=[f,b.op].join(\".\")){case\"theme.replace\":a.useTheme(b.value);break;case\"template.replace\":a.useTemplate(b.value);break;case\"node.add\":e(a,b.value,b.node,b.index).renderTree(),a.layout();break;case\"node.remove\":a.removeNode(b.node.getChild(b.index)),a.layout();break;case\"data.add\":case\"data.replace\":case\"data.remove\":var k,l=b.node.data;for(c=b.dataPath.slice();l&&c.length>1;)k=c.shift(),k in l?l=l[k]:\"remove\"!=b.op&&(l=l[k]={});l&&(k=c.shift(),l[k]=b.value),\"expandState\"==k?d.renderTree():d.render(),a.layout()}a.fire(\"patch\",{patch:b})}var g=b.r(17),h=b.r(19);g.extendClass(h,{applyPatches:function(a){for(var b=0;b<a.length;b++)f(this,a[b]);return this.fire(\"contentchange\"),this}})}},b[25]={value:function(a,b,c){var d=0,e=1,f=2,g=function(a){if(!(this instanceof g))return new g(a);this.id=\"Thenable/1.0.7\",this.state=d,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],\"function\"==typeof a&&a.call(this,this.fulfill.bind(this),this.reject.bind(this))};g.prototype={fulfill:function(a){return h(this,e,\"fulfillValue\",a)},reject:function(a){return h(this,f,\"rejectReason\",a)},then:function(a,b){var c=this,d=new g;return c.onFulfilled.push(k(a,d,\"fulfill\")),c.onRejected.push(k(b,d,\"reject\")),i(c),d}},g.all=function(a){return new g(function(b,c){var d=a.length,e=0,f=0,g=[];for(0===d&&b(g);e<d;)a[e].then(function(a){g.push(a),++f===d&&b(g)},function(a){c(a)}),e++})};var h=function(a,b,c,e){return a.state===d&&(a.state=b,a[c]=e,i(a)),a},i=function(a){a.state===e?j(a,\"onFulfilled\",a.fulfillValue):a.state===f&&j(a,\"onRejected\",a.rejectReason)},j=function(a,b,c){if(0!==a[b].length){var d=a[b];a[b]=[];var e=function(){for(var a=0;a<d.length;a++)d[a](c)};\"object\"==typeof process&&\"function\"==typeof process.nextTick?process.nextTick(e):\"function\"==typeof setImmediate?setImmediate(e):setTimeout(e,0)}},k=function(a,b,c){return function(d){if(\"function\"!=typeof a)b[c].call(b,d);else{var e;try{e=d instanceof g?d.then(a):a(d)}catch(a){return void b.reject(a)}l(b,e)}}},l=function(a,b){if(a===b)return void a.reject(new TypeError(\"cannot resolve promise with itself\"));var c;if(\"object\"==typeof b&&null!==b||\"function\"==typeof b)try{c=b.then}catch(b){return void a.reject(b)}if(\"function\"!=typeof c)a.fulfill(b);else{var d=!1;try{c.call(b,function(c){d||(d=!0,c===b?a.reject(new TypeError(\"circular thenable chain\")):l(a,c))},function(b){d||(d=!0,a.reject(b))})}catch(b){d||a.reject(b)}}};g.resolve=function(a){return new g(function(b){b(a)})},g.reject=function(a){return new g(function(b,c){c(a)})},c.exports=g}},b[26]={value:function(a,c,d){var e=b.r(17),f=b.r(19);b.r(13);f.registerInitHook(function(a){a.readOnly&&this.setDisabled()}),e.extendClass(f,{disable:function(){var a=this;a.bkqueryCommandState=a.queryCommandState,a.bkqueryCommandValue=a.queryCommandValue,a.queryCommandState=function(b){var c=this._getCommand(b);return c&&c.enableReadOnly?a.bkqueryCommandState.apply(a,arguments):-1},a.queryCommandValue=function(b){var c=this._getCommand(b);return c&&c.enableReadOnly?a.bkqueryCommandValue.apply(a,arguments):null},this.setStatus(\"readonly\"),a._interactChange()},enable:function(){var a=this;a.bkqueryCommandState&&(a.queryCommandState=a.bkqueryCommandState,delete a.bkqueryCommandState),a.bkqueryCommandValue&&(a.queryCommandValue=a.bkqueryCommandValue,delete a.bkqueryCommandValue),this.setStatus(\"normal\"),a._interactChange()}})}},b[27]={value:function(a,c,d){function e(){function a(a,b){var c=[];[\"center\",\"left\",\"right\",\"top\",\"bottom\",\"outline\",\"outside\"].forEach(function(a){var d=\"before\"+a,e=\"after\"+a;b[d]&&(c=c.concat(b[d])),b[a]&&(c=c.concat(b[a])),b[e]&&(c=c.concat(b[e]))}),a._renderers=c.map(function(b){return new b(a)})}return{renderNodeBatch:function(b){var c,d,e,g,h=this._rendererClasses,i=[],j=0;if(b.length){for(d=0;d<b.length;d++)g=b[d],g._renderers||a(g,h),g._contentBox=new f.Box,this.fire(\"beforerender\",{node:g});for(j=b[0]._renderers.length,c=0;c<j;c++){for(d=0;d<b.length;d++)\"function\"==typeof i[d]&&(i[d]=i[d]()),i[d]instanceof f.Box||(i[d]=new f.Box(i[d]));for(d=0;d<b.length;d++)g=b[d],e=g._renderers[c],i[d]&&(g._contentBox=g._contentBox.merge(i[d]),e.contentBox=i[d]),e.shouldRender(g)?(e.getRenderShape()||(e.setRenderShape(e.create(g)),e.bringToBack?g.getRenderContainer().prependShape(e.getRenderShape()):g.getRenderContainer().appendShape(e.getRenderShape())),e.getRenderShape().setVisible(!0),i[d]=e.update(e.getRenderShape(),g,g._contentBox)):e.getRenderShape()&&(e.getRenderShape().setVisible(!1),i[d]=null)}for(d=0;d<b.length;d++)this.fire(\"noderender\",{node:b[d]})}},renderNode:function(b){var c,d=this._rendererClasses;b._renderers||a(b,d),this.fire(\"beforerender\",{node:b}),b._contentBox=new f.Box,b._renderers.forEach(function(a){a.shouldRender(b)?(a.getRenderShape()||(a.setRenderShape(a.create(b)),a.bringToBack?b.getRenderContainer().prependShape(a.getRenderShape()):b.getRenderContainer().appendShape(a.getRenderShape())),a.getRenderShape().setVisible(!0),c=a.update(a.getRenderShape(),b,b._contentBox),\"function\"==typeof c&&(c=c()),c&&(b._contentBox=b._contentBox.merge(c),a.contentBox=c)):a.getRenderShape()&&a.getRenderShape().setVisible(!1)}),this.fire(\"noderender\",{node:b})}}}var f=b.r(17),g=b.r(19),h=b.r(21),i=f.createClass(\"Renderer\",{constructor:function(a){this.node=a},create:function(a){throw new Error(\"Not implement: Renderer.create()\")},shouldRender:function(a){return!0},watchChange:function(a){void 0===this.watchingData||this.watchingData,this.watchingData=a},shouldDraw:function(a){return!0},update:function(a,b,c){return this.shouldDraw()&&this.draw(a,b),this.place(a,b,c)},draw:function(a,b){throw new Error(\"Not implement: Renderer.draw()\")},place:function(a,b,c){throw new Error(\"Not implement: Renderer.place()\")},getRenderShape:function(){return this._renderShape||null},setRenderShape:function(a){this._renderShape=a}});f.extendClass(g,e()),f.extendClass(h,{render:function(){if(this.attached)return this.getMinder().renderNode(this),this},renderTree:function(){if(this.attached){var a=[];return this.traverse(function(b){a.push(b)}),this.getMinder().renderNodeBatch(a),this}},getRenderer:function(a){var b=this._renderers;if(!b)return null;for(var c=0;c<b.length;c++)if(b[c].getType()==a)return b[c];return null},getContentBox:function(){return this.parent&&this.parent.isCollapsed()?new f.Box:this._contentBox||new f.Box},getRenderBox:function(a,b){var c=a&&this.getRenderer(a),d=c?c.contentBox:this.getContentBox();return f.Matrix.getCTM(this.getRenderContainer(),b||\"paper\").transformBox(d)}}),d.exports=i}},b[28]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(19),h=b.r(21);g.registerInitHook(function(){this._initSelection()}),e.extendClass(g,{_initSelection:function(){this._selectedNodes=[]},renderChangedSelection:function(a){var b=this.getSelectedNodes(),c=[];for(b.forEach(function(b){-1==a.indexOf(b)&&c.push(b)}),a.forEach(function(a){-1==b.indexOf(a)&&c.push(a)}),c.length&&(this._interactChange(),this.fire(\"selectionchange\"));c.length;)c.shift().render()},getSelectedNodes:function(){return this._selectedNodes},getSelectedNode:function(){return this.getSelectedNodes()[0]||null},removeAllSelectedNodes:function(){var a=this._selectedNodes.splice(0);return this._selectedNodes=[],this.renderChangedSelection(a),this.fire(\"selectionclear\")},removeSelectedNodes:function(a){var b=this,c=this._selectedNodes.slice(0);return a=f.isArray(a)?a:[a],a.forEach(function(a){var c;-1!==(c=b._selectedNodes.indexOf(a))&&b._selectedNodes.splice(c,1)}),this.renderChangedSelection(c),this},select:function(a,b){var c=this.getSelectedNodes().slice(0);b&&(this._selectedNodes=[]);var d=this;return a=f.isArray(a)?a:[a],a.forEach(function(a){-1===d._selectedNodes.indexOf(a)&&d._selectedNodes.unshift(a)}),this.renderChangedSelection(c),this},selectById:function(a,b){a=f.isArray(a)?a:[a];var c=this.getNodesById(a);return this.select(c,b)},toggleSelect:function(a){return f.isArray(a)?a.forEach(this.toggleSelect.bind(this)):a.isSelected()?this.removeSelectedNodes(a):this.select(a),this},isSingleSelect:function(){return 1==this._selectedNodes.length},getSelectedAncestors:function(a){function b(a,b){for(var c=a.length-1;c>=0;--c)if(a[c].isAncestorOf(b))return!0;return!1}var c,d=this.getSelectedNodes().slice(0),e=[],f=d.indexOf(this.getRoot());for(~f&&!a&&d.splice(f,1),d.sort(function(a,b){return a.getLevel()-b.getLevel()});c=d.pop();)b(d,c)||e.push(c);return e}}),e.extendClass(h,{isSelected:function(){var a=this.getMinder();return a&&-1!=a.getSelectedNodes().indexOf(this)}})}},b[29]={value:function(a,c,d){function e(a){var b=4096,c=8192,d=16384,e=0;return\"string\"==typeof a?a.toLowerCase().split(/\\+\\s*/).forEach(function(a){switch(a){case\"ctrl\":case\"cmd\":e|=b;break;case\"alt\":e|=c;break;case\"shift\":e|=d;break;default:e|=h[a]}}):((a.ctrlKey||a.metaKey)&&(e|=b),a.altKey&&(e|=c),a.shiftKey&&(e|=d),e|=a.keyCode),e}var f=b.r(17),g=b.r(33),h=b.r(15),i=b.r(19),j=b.r(13);f.extendClass(j,{isShortcutKey:function(a){var b=this.originEvent;return!!b&&e(a)==e(b)}}),i.registerInitHook(function(){this._initShortcutKey()}),f.extendClass(i,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var a=this._shortcutKeys={};this.on(\"keydown\",function(b){for(var c in a)if(a.hasOwnProperty(c)&&b.isShortcutKey(c)){var d=a[c];if(d.__statusCondition&&d.__statusCondition!=this.getStatus())return;d(),b.preventDefault()}})},addShortcut:function(a,b){var c=this._shortcutKeys;a.split(/\\|\\s*/).forEach(function(a){var d,e=a.split(\"::\");e.length>1&&(a=e[1],d=e[0],b.__statusCondition=d),c[a]=b})},addCommandShortcutKeys:function(a,b){var c=this._commandShortcutKeys||(this._commandShortcutKeys={}),d={};b?d[a]=b:d=a;var e=this;g.each(d,function(a,b){c[b]=a,e.addShortcut(a,function(){-1!==e.queryCommandState(b)&&e.execCommand(b)})})},getCommandShortcutKey:function(a){var b=this._commandShortcutKeys;return b&&b[a]||null},supportClipboardEvent:function(a){return!!a.ClipboardEvent}(window)})}},b[30]={value:function(a,c,d){var e=b.r(17),f=b.r(19),g=~window.location.href.indexOf(\"status\"),h=~window.location.href.indexOf(\"trace\");f.registerInitHook(function(){this._initStatus()}),e.extendClass(f,{_initStatus:function(){this._status=\"normal\",this._rollbackStatus=\"normal\"},setStatus:function(a,b){return\"readonly\"!=this._status||b?(a!=this._status&&(this._rollbackStatus=this._status,this._status=a,this.fire(\"statuschange\",{lastStatus:this._rollbackStatus,currentStatus:this._status}),g&&(console.log(window.event.type,this._rollbackStatus,\"->\",this._status),h&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},b[31]={value:function(a,c,d){function e(a,b){l[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(9),j=b.r(21),k=b.r(20),l={};c.register=e,g.extend(h,{getTemplateList:function(){return l}}),f.extendClass(h,function(){var a=h.prototype.getTheme;return{useTemplate:function(a,b){this.setTemplate(a),this.refresh(b||800)},getTemplate:function(){return this._template||\"default\"},setTemplate:function(a){this._template=a||null},getTemplateSupport:function(a){var b=l[this.getTemplate()];return b&&b[a]},getTheme:function(b){return(this.getTemplateSupport(\"getTheme\")||a).call(this,b)}}}()),f.extendClass(j,function(){var a=j.prototype.getLayout,b=j.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport(\"getLayout\")||a).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport(\"getConnect\")||b).call(this,this)}}}()),k.register(\"TemplateModule\",{commands:{template:f.createClass(\"TemplateCommand\",{base:i,execute:function(a,b){a.useTemplate(b),a.execCommand(\"camera\")},queryValue:function(a){return a.getTemplate()||\"default\"}})}})}},b[32]={value:function(a,c,d){function e(a,b){m[a]=b}var f=b.r(17),g=b.r(33),h=b.r(19),i=b.r(21),j=b.r(20),k=b.r(9),l={left:function(a){return 3 in a&&a[3]||1 in a&&a[1]||a[0]},right:function(a){return 1 in a&&a[1]||a[0]},top:function(a){return a[0]},bottom:function(a){return 2 in a&&a[2]||a[0]}},m={};c.register=e,g.extend(h,{getThemeList:function(){return m}}),f.extendClass(h,{useTheme:function(a){return this.setTheme(a),this.refresh(800),!0},setTheme:function(a){if(a&&!m[a])throw new Error(\"Theme \"+a+\" not exists!\");var b=this._theme;this._theme=a||null;var c=this.getRenderTarget();return c&&(c.classList.remove(\"km-theme-\"+b),a&&c.classList.add(\"km-theme-\"+a),c.style.background=this.getStyle(\"background\")),this.fire(\"themechange\",{theme:a}),this},getTheme:function(a){return this._theme||this.getOption(\"defaultTheme\")||\"fresh-blue\"},getThemeItems:function(a){this.getTheme(a);return m[this.getTheme(a)]},getStyle:function(a,b){var c,d,e,f,h=this.getThemeItems(b);if(a in h)return h[a];if(c=a.split(\"-\"),c.length<2)return null;if(d=c.pop(),(a=c.join(\"-\"))in h){if(e=h[a],g.isArray(e)&&(f=l[d]))return f(e);if(!isNaN(e))return e}return null},getNodeStyle:function(a,b){var c=this.getStyle(a.getType()+\"-\"+b,a);return null!==c?c:this.getStyle(b,a)}}),f.extendClass(i,{getStyle:function(a){return this.getMinder().getNodeStyle(this,a)}}),j.register(\"Theme\",{defaultOptions:{defaultTheme:\"fresh-blue\"},commands:{theme:f.createClass(\"ThemeCommand\",{base:k,execute:function(a,b){return a.useTheme(b)},queryValue:function(a){return a.getTheme()||\"default\"}})}}),h.registerInitHook(function(){this.setTheme()})}},b[33]={value:function(a,c){var d=b.r(17),e={};c.extend=d.Utils.extend.bind(d.Utils),c.each=d.Utils.each.bind(d.Utils),c.uuid=function(a){return e[a]=e[a]?e[a]+1:1,a+e[a]},c.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},c.trim=function(a){return a.replace(/(^[ \\t\\n\\r]+)|([ \\t\\n\\r]+$)/g,\"\")},c.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},c.clone=function(a){return JSON.parse(JSON.stringify(a))},c.comparePlainObject=function(a,b){return JSON.stringify(a)==JSON.stringify(b)},c.encodeHtml=function(a,b){return a?a.replace(b||/[&<\">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(a,b){return b?a:{\"<\":\"&lt;\",\"&\":\"&amp;\",'\"':\"&quot;\",\">\":\"&gt;\",\"'\":\"&#39;\"}[a]}):\"\"},c.clearWhiteSpace=function(a){return a.replace(/[\\u200b\\t\\r\\n]/g,\"\")},c.each([\"String\",\"Function\",\"Array\",\"Number\",\"RegExp\",\"Object\"],function(a){var b=Object.prototype.toString;c[\"is\"+a]=function(c){return b.apply(c)==\"[object \"+a+\"]\"}})}},b[34]={value:function(a,c,d){d.exports=window.kityminder=b.r(35)}},b[35]={value:function(a,c,d){var e={version:b.r(19).version};b.r(33),e.Minder=b.r(19),e.Command=b.r(9),e.Node=b.r(21),b.r(22),b.r(8),e.Event=b.r(13),e.data=b.r(12),b.r(10),e.KeyMap=b.r(15),b.r(29),b.r(30),b.r(23),b.r(28),b.r(14),b.r(16),e.Module=b.r(20),b.r(26),e.Render=b.r(27),e.Connect=b.r(11),e.Layout=b.r(18),e.Theme=b.r(32),e.Template=b.r(31),e.Promise=b.r(25),b.r(7),b.r(24),b.r(42),b.r(43),b.r(44),b.r(45),b.r(46),b.r(47),b.r(48),b.r(50),b.r(49),b.r(51),b.r(52),b.r(53),b.r(54),b.r(55),b.r(56),b.r(57),b.r(58),b.r(59),b.r(60),b.r(61),b.r(62),b.r(63),b.r(64),b.r(68),b.r(65),b.r(67),b.r(66),b.r(40),b.r(36),b.r(37),b.r(38),b.r(39),b.r(41),b.r(75),b.r(78),b.r(77),b.r(76),b.r(78),b.r(80),b.r(79),b.r(0),b.r(1),b.r(2),b.r(3),b.r(4),b.r(5),b.r(6),b.r(69),b.r(73),b.r(70),b.r(72),b.r(71),b.r(74),d.exports=e}},b[36]={value:function(a,c,d){function e(a){function b(a){var b=[],d=a.getLayoutBox(),e=5;return\"x\"==c?(b.push({type:\"up\",node:a,area:new f.Box({x:d.x,y:d.top-a.getStyle(\"margin-top\")-e,width:d.width,height:a.getStyle(\"margin-top\")}),path:[\"M\",d.x,d.top-e,\"L\",d.right,d.top-e]}),b.push({type:\"down\",node:a,area:new f.Box({x:d.x,y:d.bottom+e,width:d.width,height:a.getStyle(\"margin-bottom\")}),path:[\"M\",d.x,d.bottom+e,\"L\",d.right,d.bottom+e]})):(b.push({type:\"up\",node:a,area:new f.Box({x:d.left-a.getStyle(\"margin-left\")-e,y:d.top,width:a.getStyle(\"margin-left\"),height:d.height}),path:[\"M\",d.left-e,d.top,\"L\",d.left-e,d.bottom]}),b.push({type:\"down\",node:a,area:new f.Box({x:d.right+e,y:d.top,width:a.getStyle(\"margin-right\"),height:d.height}),path:[\"M\",d.right+e,d.top,\"L\",d.right+e,d.bottom]})),b}var c=\"left\"==a||\"right\"==a?\"x\":\"y\",d=\"left\"==a||\"top\"==a?-1:1,e={left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\",x:\"y\",y:\"x\"};g.register(a,f.createClass({base:g,doLayout:function(b,g){var h=b.getContentBox();if(\"x\"==c?(b.setVertexOut(new f.Point(h[a],h.cy)),b.setLayoutVectorOut(new f.Vector(d,0))):(b.setVertexOut(new f.Point(h.cx,h[a])),b.setLayoutVectorOut(new f.Vector(0,d))),!g.length)return!1;g.forEach(function(b){var g=b.getContentBox();b.setLayoutTransform(new f.Matrix),\"x\"==c?(b.setVertexIn(new f.Point(g[e[a]],g.cy)),b.setLayoutVectorIn(new f.Vector(d,0))):(b.setVertexIn(new f.Point(g.cx,g[e[a]])),b.setLayoutVectorIn(new f.Vector(0,d)))}),this.align(g,e[a]),this.stack(g,e[c]);var i=this.getBranchBox(g),j=0,k=0;\"x\"==c?(j=h[a],j+=d*b.getStyle(\"margin-\"+a),j+=d*g[0].getStyle(\"margin-\"+e[a]),k=h.bottom,k-=h.height/2,k-=i.height/2,k-=i.y):(j=h.right,j-=h.width/2,j-=i.width/2,j-=i.x,k=h[a],k+=d*b.getStyle(\"margin-\"+a),k+=d*g[0].getStyle(\"margin-\"+e[a])),this.move(g,j,k)},getOrderHint:b}))}var f=b.r(17),g=b.r(18);[\"left\",\"right\",\"top\",\"bottom\"].forEach(e)}},b[37]={value:function(a,c,d){function e(a){var b=\"filetree-\"+(a>0?\"down\":\"up\");g.register(b,f.createClass({base:g,doLayout:function(b,c,d){var e=b.getContentBox(),g=20;if(b.setVertexOut(new f.Point(e.left+g,a>0?e.bottom:e.top)),b.setLayoutVectorOut(new f.Vector(0,a)),c.length){c.forEach(function(a){var b=a.getContentBox();a.setLayoutTransform(new f.Matrix),a.setVertexIn(new f.Point(b.left,b.cy)),a.setLayoutVectorIn(new f.Vector(1,0))}),this.align(c,\"left\"),this.stack(c,\"y\");var h=0;h+=e.left,h+=g,h+=c[0].getStyle(\"margin-left\");var i=0;a>0?(i+=e.bottom,i+=b.getStyle(\"margin-bottom\"),i+=c[0].getStyle(\"margin-top\")):(i-=this.getTreeBox(c).bottom,i+=e.top,i-=b.getStyle(\"margin-top\"),i-=c[0].getStyle(\"margin-bottom\")),this.move(c,h,i)}},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=a.getLevel()>1?3:5;return b.push({type:\"up\",node:a,area:new f.Box({x:c.x,y:c.top-a.getStyle(\"margin-top\")-d,width:c.width,height:a.getStyle(\"margin-top\")}),path:[\"M\",c.x,c.top-d,\"L\",c.right,c.top-d]}),b.push({type:\"down\",node:a,area:new f.Box({x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle(\"margin-bottom\")}),path:[\"M\",c.x,c.bottom+d,\"L\",c.right,c.bottom+d]}),b}}))}var f=b.r(17),g=b.r(18);[-1,1].forEach(e)}},b[38]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register(\"fish-bone-master\",e.createClass(\"FishBoneMasterLayout\",{base:f,doLayout:function(a,b,c){var d=[],f=[],g=b[0],h=a.getContentBox();if(a.setVertexOut(new e.Point(h.right,h.cy)),a.setLayoutVectorOut(new e.Vector(1,0)),g){var i=(g.getContentBox(),a.getStyle(\"margin-right\")),j=g.getStyle(\"margin-left\"),k=g.getStyle(\"margin-top\"),l=g.getStyle(\"margin-bottom\");b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix);var c=a.getContentBox();b%2?(f.push(a),a.setVertexIn(new e.Point(c.left,c.top)),a.setLayoutVectorIn(new e.Vector(1,1))):(d.push(a),a.setVertexIn(new e.Point(c.left,c.bottom)),a.setLayoutVectorIn(new e.Vector(1,-1)))}),this.stack(d,\"x\"),this.stack(f,\"x\"),this.align(d,\"bottom\"),this.align(f,\"top\");var m=h.right+i+j,n=h.cy-l-a.getStyle(\"margin-top\"),o=h.cy+k+a.getStyle(\"margin-bottom\");this.move(d,m,n),this.move(f,m+j,o)}}}))}},b[39]={value:function(a,c,d){var e=b.r(17),f=b.r(18);f.register(\"fish-bone-slave\",e.createClass(\"FishBoneSlaveLayout\",{base:f,doLayout:function(a,b,c){var d=this,f=Math.abs,g=.382,h=a.getContentBox(),i=a.getLayoutVectorIn();a.setLayoutVectorOut(i);var j=h.left+h.width*g,k=new e.Point(j,i.y>0?h.bottom:h.top);a.setVertexOut(k);var l=b[0];if(l){var m=l.getContentBox();b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix),a.setLayoutVectorIn(new e.Vector(1,0)),a.setVertexIn(new e.Point(m.left,m.cy))}),this.stack(b,\"y\"),this.align(b,\"left\");var n=0,o=0;n+=k.x,a.getLayoutVectorOut().y<0?(o-=this.getTreeBox(b).bottom,o+=a.getContentBox().top,o-=a.getStyle(\"margin-top\"),o-=l.getStyle(\"margin-bottom\")):(o+=a.getContentBox().bottom,o+=a.getStyle(\"margin-bottom\"),o+=l.getStyle(\"margin-top\")),this.move(b,n,o),2==c&&b.forEach(function(a){var b=a.getLayoutTransform(),c=a.getContentBox(),g=b.transformPoint(new e.Point(c.left,0));d.move([a],f(g.y-k.y),0)})}}}))}},b[40]={value:function(a,c,d){var e=b.r(17),f=b.r(18),g=b.r(19);f.register(\"mind\",e.createClass({base:f,doLayout:function(a,b){var c=Math.ceil(a.children.length/2),d=[],f=[];b.forEach(function(a){a.getIndex()<c?d.push(a):f.push(a)});var h=g.getLayoutInstance(\"left\"),i=g.getLayoutInstance(\"right\");h.doLayout(a,f),i.doLayout(a,d);var j=a.getContentBox();a.setVertexOut(new e.Point(j.cx,j.cy)),a.setLayoutVectorOut(new e.Vector(0,0))},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=5;return b.push({type:\"up\",node:a,area:new e.Box({x:c.x,y:c.top-a.getStyle(\"margin-top\")-d,width:c.width,height:a.getStyle(\"margin-top\")}),path:[\"M\",c.x,c.top-d,\"L\",c.right,c.top-d]}),b.push({type:\"down\",node:a,area:new e.Box({x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle(\"margin-bottom\")}),path:[\"M\",c.x,c.bottom+d,\"L\",c.right,c.bottom+d]}),b}}))}},b[41]={value:function(a,c,d){var e=b.r(17),f=b.r(18);b.r(19);f.register(\"tianpan\",e.createClass({base:f,doLayout:function(a,b){if(0!=b.length){var c,d,f,g=this,h=a.getContentBox(),i=5,j=Math.max(h.width,50);b.forEach(function(a,b){a.setLayoutTransform(new e.Matrix),f=g.getTreeBox(a),j=Math.max(Math.max(f.width,f.height),j)}),j=j/1.5/Math.PI,b.forEach(function(a,b){c=j*(Math.cos(i)+Math.sin(i)*i),d=j*(Math.sin(i)-Math.cos(i)*i),i+=.9-.02*b,a.setLayoutVectorIn(new e.Vector(1,0)),a.setVertexIn(new e.Point(h.cx,h.cy)),a.setLayoutTransform(new e.Matrix),g.move([a],c,d)})}},getOrderHint:function(a){var b=[],c=a.getLayoutBox(),d=5;return b.push({type:\"up\",node:a,area:{x:c.x,y:c.top-a.getStyle(\"margin-top\")-d,width:c.width,height:a.getStyle(\"margin-top\")},path:[\"M\",c.x,c.top-d,\"L\",c.right,c.top-d]}),b.push({type:\"down\",node:a,area:{x:c.x,y:c.bottom+d,width:c.width,height:a.getStyle(\"margin-bottom\")},path:[\"M\",c.x,c.bottom+d,\"L\",c.right,c.bottom+d]}),b}}))}},b[42]={value:function(a,c,d){function e(a,b){return a.getIndex()-b.getIndex()}function f(a,b){return-e(a,b)}var g=b.r(17),h=b.r(21),i=b.r(9),j=b.r(20);g.extendClass(h,{arrange:function(a){var b=this.parent;if(b){var c=b.children;if(!(a<0||a>=c.length))return c.splice(this.getIndex(),1),c.splice(a,0,this),this}}});var k=g.createClass(\"ArrangeUpCommand\",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(e);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]-1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),l=g.createClass(\"ArrangeUpCommand\",{base:i,execute:function(a){var b=a.getSelectedNodes();b.sort(f);var c=b.map(function(a){return a.getIndex()});b.forEach(function(a,b){a.arrange(c[b]+1)}),a.layout(300)},queryState:function(a){return a.getSelectedNode()?0:-1}}),m=g.createClass(\"ArrangeCommand\",{base:i,execute:function(a,b){var c=a.getSelectedNodes().slice();if(c.length){if(h.getCommonAncestor(c)==c[0].parent){var d=c.map(function(a){return{index:a.getIndex(),node:a}}),e=Math.min.apply(Math,d.map(function(a){return a.index}))>=b;d.sort(function(a,b){return e?b.index-a.index:a.index-b.index}),d.forEach(function(a){a.node.arrange(b)}),a.layout(300)}}},queryState:function(a){return a.getSelectedNode()?0:-1}});j.register(\"ArrangeModule\",{commands:{arrangeup:k,arrangedown:l,arrange:m},contextmenu:[{command:\"arrangeup\"},{command:\"arrangedown\"},{divider:!0}],commandShortcutKeys:{arrangeup:\"normal::alt+Up\",arrangedown:\"normal::alt+Down\"}})}},b[43]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(61);g.register(\"basestylemodule\",function(){function a(a,b){return a.getData(b)||a.getStyle(b)}var b=this;return h.registerStyleHook(function(b,c){var d=a(b,\"font-weight\"),e=a(b,\"font-style\");[d,e].join(\"/\");c.eachItem(function(a,b){b.setFont({weight:d,style:e})})}),{commands:{bold:e.createClass(\"boldCommand\",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState(\"bold\")?b.forEach(function(a){a.setData(\"font-weight\").render()}):b.forEach(function(a){a.setData(\"font-weight\",\"bold\").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData(\"font-weight\"))return c=1,!1}),c)}}),italic:e.createClass(\"italicCommand\",{base:f,execute:function(a){var b=a.getSelectedNodes();1==this.queryState(\"italic\")?b.forEach(function(a){a.setData(\"font-style\").render()}):b.forEach(function(a){a.setData(\"font-style\",\"italic\").render()}),a.layout()},queryState:function(){var a=b.getSelectedNodes(),c=0;return 0===a.length?-1:(a.forEach(function(a){if(a&&a.getData(\"font-style\"))return c=1,!1}),c)}})},commandShortcutKeys:{bold:\"ctrl+b\",italic:\"ctrl+i\"}}})}},b[44]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9);b.r(20).register(\"ClipboardModule\",function(){function a(b,d){h.push(d),c.appendNode(d,b),d.render(),d.setLayoutOffset(null);var e=d.children.map(function(a){return a.clone()});d.clearChildren();for(var f,g=0;f=e[g];g++)a(d,f)}function b(a){a.length&&(a.sort(function(a,b){return a.getIndex()-b.getIndex()}),d=a.map(function(a){return a.clone()}))}var c=this,d=[],h=[],i=e.createClass(\"CopyCommand\",{base:g,execute:function(a){b(a.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),j=e.createClass(\"CutCommand\",{base:g,execute:function(a){var c=a.getSelectedAncestors();0!==c.length&&(b(c),a.select(f.getCommonAncestor(c),!0),c.slice().forEach(function(b){a.removeNode(b)}),a.layout(300))}}),k=e.createClass(\"PasteCommand\",{base:g,execute:function(b){if(d.length){var c=b.getSelectedNodes();if(!c.length)return;for(var e,f=0;e=d[f];f++)for(var g,i=0;g=c[i];i++)a(g,e.clone());b.select(h,!0),h=[],b.layout(300)}},queryState:function(a){return a.getSelectedNode()?0:-1}});if(c.supportClipboardEvent&&!e.Browser.gecko){var l=function(a){this.fire(\"beforeCopy\",a)},m=function(a){this.fire(\"beforeCut\",a)},n=function(a){this.fire(\"beforePaste\",a)};return{commands:{copy:i,cut:j,paste:k},clipBoardEvents:{copy:l.bind(c),cut:m.bind(c),paste:n.bind(c)},sendToClipboard:b}}return{commands:{copy:i,cut:j,paste:k},commandShortcutKeys:{copy:\"normal::ctrl+c|\",cut:\"normal::ctrl+x\",paste:\"normal::ctrl+v\"},sendToClipboard:b}})}},b[45]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(21)),g=b.r(9),h=b.r(20),i=e.createClass(\"MoveToParentCommand\",{base:g,execute:function(a,b,c){for(var d,e=0;e<b.length;e++)d=b[e],d.parent&&(d.parent.removeChild(d),c.appendChild(d),d.render());c.expand(),a.select(b,!0)}}),j=e.createClass(\"DropHinter\",{base:e.Group,constructor:function(){this.callBase(),this.rect=new e.Rect,this.addShape(this.rect)},render:function(a){this.setVisible(!!a),a&&(this.rect.setBox(a.getLayoutBox()).setRadius(a.getStyle(\"radius\")||0).stroke(a.getStyle(\"drop-hint-color\")||\"yellow\",a.getStyle(\"drop-hint-width\")||2),this.bringTop())}}),k=e.createClass(\"OrderHinter\",{base:e.Group,constructor:function(){this.callBase(),this.area=new e.Rect,this.path=new e.Path,this.addShapes([this.area,this.path])},render:function(a){this.setVisible(!!a),a&&(this.area.setBox(a.area),this.area.fill(a.node.getStyle(\"order-hint-area-color\")||\"rgba(0, 255, 0, .5)\"),this.path.setPathData(a.path),this.path.stroke(a.node.getStyle(\"order-hint-path-color\")||\"#0f0\",a.node.getStyle(\"order-hint-path-width\")||1))}}),l=e.createClass(\"TreeDragger\",{constructor:function(a){this._minder=a,this._dropHinter=new j,this._orderHinter=new k,a.getRenderContainer().addShapes([this._dropHinter,this._orderHinter])},dragStart:function(a){this._startPosition=a},dragMove:function(a){if(this._startPosition){var b=e.Vector.fromPoints(this._dragPosition||this._startPosition,a),c=this._minder;if(this._dragPosition=a,!this._dragMode){if(e.Vector.fromPoints(this._dragPosition,this._startPosition).length()<10)return;if(!this._enterDragMode())return}for(var d=0;d<this._dragSources.length;d++)this._dragSources[d].setLayoutOffset(this._dragSources[d].getLayoutOffset().offset(b)),c.applyLayoutResult(this._dragSources[d]);this._dropTest()?this._renderOrderHint(this._orderSucceedHint=null):this._orderTest()}},dragEnd:function(){if(this._startPosition=null,this._dragPosition=null,this._dragMode){if(this._fadeDragSources(1),this._dropSucceedTarget)this._dragSources.forEach(function(a){a.setLayoutOffset(null)}),this._minder.layout(-1),this._minder.execCommand(\"movetoparent\",this._dragSources,this._dropSucceedTarget);else if(this._orderSucceedHint){var a=this._orderSucceedHint,b=a.node.getIndex(),c=this._dragSources.map(function(a){return a.setLayoutOffset(null),a.getIndex()}),d=Math.max.apply(Math,c),e=Math.min.apply(Math,c);b<e&&\"down\"==a.type&&b++,b>d&&\"up\"==a.type&&b--,a.node.setLayoutOffset(null),this._minder.execCommand(\"arrange\",b),this._renderOrderHint(null)}else this._minder.fire(\"savescene\");this._minder.layout(300),this._leaveDragMode(),this._minder.fire(\"contentchange\")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus(\"dragtree\"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(a){var b=this._minder;this._dragSources.forEach(function(c){c.getRenderContainer().setOpacity(a,200),c.traverse(function(c){a<1?b.detachNode(c):b.attachNode(c)},!0)})},_calcDropTargets:function(){function a(b,c){var d,e=[];return e.push(c),c.getChildren().forEach(function(c){for(d=0;d<b.length;d++)if(b[d]==c)return;e=e.concat(a(b,c))}),e}this._dropTargets=a(this._dragSources,this._minder.getRoot()),this._dropTargetBoxes=this._dropTargets.map(function(a){return a.getLayoutBox()})},_calcOrderHints:function(){var a=this._dragSources,b=f.getCommonAncestor(a);if(b==a[0]&&(b=a[0].parent),0===a.length||b!=a[0].parent)return void(this._orderHints=[]);var c=b.children;this._orderHints=c.reduce(function(b,c){return-1==a.indexOf(c)&&(b=b.concat(c.getOrderHint())),b},[])},_leaveDragMode:function(){this._dragMode=!1,this._dropSucceedTarget=null,this._orderSucceedHint=null,this._renderDropHint(null),this._renderOrderHint(null),this._minder.rollbackStatus()},_drawForDragMode:function(){this._text.setContent(this._dragSources.length+\" items\"),this._text.setPosition(this._startPosition.x,this._startPosition.y+5),this._minder.getRenderContainer().addShape(this)},_boxTest:function(a,b,c){var d,e,f,g,h,i=this._dragSources.map(function(a){return a.getLayoutBox()});for(c=c||function(a,b,c){return a&&!a.isEmpty()},d=0;d<a.length;d++)for(f=a[d],h=b.call(this,f,d),e=0;e<i.length;e++){g=i[e];var j=g.intersect(h);if(c(j,g,h))return f}return null},_dropTest:function(){return this._dropSucceedTarget=this._boxTest(this._dropTargets,function(a,b){return this._dropTargetBoxes[b]},function(a,b,c){function d(a){return a.width*a.height}return!!a&&(!!d(a)&&(d(a)>.5*Math.min(d(b),d(c))||(a.width+1>=Math.min(b.width,c.width)||a.height+1>=Math.min(b.height,c.height))))}),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,function(a){return a.area}),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(a){this._dropHinter.render(a)},_renderOrderHint:function(a){this._orderHinter.render(a)},preventDragMove:function(){this._startPosition=null}});h.register(\"DragTree\",function(){var a;return{init:function(){a=new l(this),window.addEventListener(\"mouseup\",function(){a.dragEnd()})},events:{\"normal.mousedown inputready.mousedown\":function(b){b.originEvent.button||b.getTargetNode()&&b.getTargetNode()!=this.getRoot()&&a.dragStart(b.getPosition())},\"normal.mousemove dragtree.mousemove\":function(b){a.dragMove(b.getPosition())},\"normal.mouseup dragtree.beforemouseup\":function(b){a.dragEnd(),b.preventDefault()},statuschange:function(b){\"textedit\"==b.lastStatus&&\"normal\"==b.currentStatus&&a.preventDragMove()}},commands:{movetoparent:i}}})}},b[46]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=b.r(15),h=b.r(21),i=b.r(9),j=b.r(20),k=b.r(27);j.register(\"Expand\",function(){var a=this,b=\"expandState\",c=\"collapse\";e.extendClass(h,{expand:function(){return this.setData(b,\"expand\"),this},collapse:function(){return this.setData(b,c),this},isExpanded:function(){return this.getData(b)!==c&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var d=e.createClass(\"ExpandCommand\",{base:i,execute:function(a,b){var c=a.getSelectedNode();if(c){for(b&&(c=c.parent);c.parent;)c.expand(),c=c.parent;c.renderTree(),a.layout(100)}},queryState:function(a){var b=a.getSelectedNode();return!b||b.isRoot()||b.isExpanded()?-1:0}}),j=e.createClass(\"ExpandToLevelCommand\",{base:i,execute:function(a,b){a.getRoot().traverse(function(a){a.getLevel()<b&&a.expand(),a.getLevel()!=b||a.isLeaf()||a.collapse()}),a.refresh(100)},enableReadOnly:!0}),l=e.createClass(\"CollapseCommand\",{base:i,execute:function(a){var b=a.getSelectedNode();b&&(b.collapse(),b.renderTree(),a.layout())},queryState:function(a){var b=a.getSelectedNode();return b&&!b.isRoot()&&b.isExpanded()?0:-1}}),m=e.createClass(\"Expander\",{base:e.Group,constructor:function(a){this.callBase(),this.radius=6,this.outline=new e.Circle(this.radius).stroke(\"gray\").fill(\"white\"),this.sign=(new e.Path).stroke(\"gray\"),this.addShapes([this.outline,this.sign]),this.initEvent(a),this.setId(f.uuid(\"node_expander\")),this.setStyle(\"cursor\",\"pointer\")},initEvent:function(b){this.on(\"mousedown\",function(c){a.select([b],!0),b.isExpanded()?b.collapse():b.expand(),b.renderTree().getMinder().layout(100),b.getMinder().fire(\"contentchange\"),c.stopPropagation(),c.preventDefault()}),this.on(\"dblclick click mouseup\",function(a){a.stopPropagation(),a.preventDefault()})},setState:function(a){if(\"hide\"==a)return void this.setVisible(!1);this.setVisible(!0);var b=[\"M\",1.5-this.radius,0,\"L\",this.radius-1.5,0];a==c&&b.push([\"M\",0,1.5-this.radius,\"L\",0,this.radius-1.5]),this.sign.setPathData(b)}}),n=e.createClass(\"ExpanderRenderer\",{base:k,create:function(a){if(!a.isRoot())return this.expander=new m(a),a.getRenderContainer().prependShape(this.expander),a.expanderRenderer=this,this.node=a,this.expander},shouldRender:function(a){return!a.isRoot()},update:function(a,c,d){if(c.parent){var e=c.parent.isExpanded();a.setState(e&&c.children.length?c.getData(b):\"hide\");var f=c.getLayoutVectorIn().normalize(a.radius+c.getStyle(\"stroke-width\")),g=c.getVertexIn().offset(f.reverse());this.expander.setTranslate(g)}}});return{commands:{expand:d,expandtolevel:j,collapse:l},events:{layoutapply:function(a){var b=a.node.getRenderer(\"ExpanderRenderer\");b.getRenderShape()&&b.update(b.getRenderShape(),a.node)},beforerender:function(a){var b=a.node,c=!b.parent||b.parent.isExpanded();b.getRenderContainer().setVisible(c),c||a.stopPropagation()},\"normal.keydown\":function(a){if(\"textedit\"!=this.getStatus()){if(a.originEvent.keyCode==g[\"/\"]){var b=this.getSelectedNode();if(!b||b==this.getRoot())return;var c=b.isExpanded();this.getSelectedNodes().forEach(function(a){c?a.collapse():a.expand(),a.renderTree()}),this.layout(100),this.fire(\"contentchange\"),a.preventDefault(),a.stopPropagationImmediately()}a.isShortcutKey(\"Alt+`\")&&this.execCommand(\"expandtolevel\",9999);for(var d=1;d<6;d++)a.isShortcutKey(\"Alt+\"+d)&&this.execCommand(\"expandtolevel\",d)}}},renderers:{outside:n},contextmenu:[{command:\"expandtoleaf\",query:function(){return!a.getSelectedNode()},fn:function(a){a.execCommand(\"expandtolevel\",9999)}},{command:\"expandtolevel1\",query:function(){return!a.getSelectedNode()},fn:function(a){a.execCommand(\"expandtolevel\",1)}},{command:\"expandtolevel2\",query:function(){return!a.getSelectedNode()},fn:function(a){a.execCommand(\"expandtolevel\",2)}},{command:\"expandtolevel3\",query:function(){return!a.getSelectedNode()},fn:function(a){a.execCommand(\"expandtolevel\",3)}},{divider:!0}]}})}},b[47]={value:function(a,c,d){function e(a,b){return a.getData(b)||a.getStyle(b)}var f=b.r(17),g=(b.r(33),b.r(19),b.r(21),b.r(9)),h=b.r(20);b.r(61).registerStyleHook(function(a,b){var c=a.getData(\"color\"),d=a.getStyle(\"selected-color\"),f=a.getStyle(\"color\"),g=c||(a.isSelected()&&d?d:f),h=e(a,\"font-family\"),i=e(a,\"font-size\");b.fill(g),b.eachItem(function(a,b){b.setFont({family:h,size:i})})}),h.register(\"fontmodule\",{commands:{forecolor:f.createClass(\"fontcolorCommand\",{base:g,execute:function(a,b){a.getSelectedNodes().forEach(function(a){a.setData(\"color\",b),a.render()})},queryState:function(a){return 0===a.getSelectedNodes().length?-1:0},queryValue:function(a){return 1==a.getSelectedNodes().length?a.getSelectedNodes()[0].getData(\"color\"):\"mixed\"}}),background:f.createClass(\"backgroudCommand\",{base:g,execute:function(a,b){a.getSelectedNodes().forEach(function(a){a.setData(\"background\",b),a.render()})},queryState:function(a){return 0===a.getSelectedNodes().length?-1:0},queryValue:function(a){return 1==a.getSelectedNodes().length?a.getSelectedNodes()[0].getData(\"background\"):\"mixed\"}}),fontfamily:f.createClass(\"fontfamilyCommand\",{base:g,execute:function(a,b){a.getSelectedNodes().forEach(function(c){c.setData(\"font-family\",b),c.render(),a.layout()})},queryState:function(a){return 0===a.getSelectedNodes().length?-1:0},queryValue:function(a){var b=a.getSelectedNode();return b?b.getData(\"font-family\"):null}}),fontsize:f.createClass(\"fontsizeCommand\",{base:g,execute:function(a,b){a.getSelectedNodes().forEach(function(c){c.setData(\"font-size\",b),c.render(),a.layout(300)})},queryState:function(a){return 0===a.getSelectedNodes().length?-1:0},queryValue:function(a){var b=a.getSelectedNode();return b?b.getData(\"font-size\"):null}})}})}},b[48]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(27);g.register(\"hyperlink\",{commands:{hyperlink:e.createClass(\"hyperlink\",{base:f,execute:function(a,b,c){a.getSelectedNodes().forEach(function(a){a.setData(\"hyperlink\",b),a.setData(\"hyperlinkTitle\",b&&c),a.render()}),a.layout()},queryState:function(a){var b=a.getSelectedNodes(),c=0;return 0===b.length?-1:(b.forEach(function(a){if(a&&a.getData(\"hyperlink\"))return c=0,!1}),c)},queryValue:function(a){var b=a.getSelectedNode();return{url:b.getData(\"hyperlink\"),title:b.getData(\"hyperlinkTitle\")}}})},renderers:{right:e.createClass(\"hyperlinkrender\",{base:h,create:function(){var a=new e.HyperLink,b=new e.Path,c=new e.Rect(24,22,-2,-6,4).fill(\"rgba(255, 255, 255, 0)\");return b.setPathData(\"M16.614,10.224h-1.278c-1.668,0-3.07-1.07-3.599-2.556h4.877c0.707,0,1.278-0.571,1.278-1.278V3.834 c0-0.707-0.571-1.278-1.278-1.278h-4.877C12.266,1.071,13.668,0,15.336,0h1.278c2.116,0,3.834,1.716,3.834,3.834V6.39 C20.448,8.508,18.73,10.224,16.614,10.224z M5.112,5.112c0-0.707,0.573-1.278,1.278-1.278h7.668c0.707,0,1.278,0.571,1.278,1.278 S14.765,6.39,14.058,6.39H6.39C5.685,6.39,5.112,5.819,5.112,5.112z M2.556,3.834V6.39c0,0.707,0.573,1.278,1.278,1.278h4.877 c-0.528,1.486-1.932,2.556-3.599,2.556H3.834C1.716,10.224,0,8.508,0,6.39V3.834C0,1.716,1.716,0,3.834,0h1.278 c1.667,0,3.071,1.071,3.599,2.556H3.834C3.129,2.556,2.556,3.127,2.556,3.834z\").fill(\"#666\"),a.addShape(c),a.addShape(b),a.setTarget(\"_blank\"),a.setStyle(\"cursor\",\"pointer\"),a.on(\"mouseover\",function(){c.fill(\"rgba(255, 255, 200, .8)\")}).on(\"mouseout\",function(){c.fill(\"rgba(255, 255, 255, 0)\")}),a},shouldRender:function(a){return a.getData(\"hyperlink\")},update:function(a,b,c){var d=b.getData(\"hyperlink\");a.setHref(\"#\");for(var f=[\"^http:\",\"^https:\",\"^ftp:\",\"^mailto:\"],g=0;g<f.length;g++)if(new RegExp(f[g]).test(d)){a.setHref(d);break}var h=b.getData(\"hyperlinkTitle\");h=h?[h,\"(\",d,\")\"].join(\"\"):d,a.node.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"title\",h);var i=b.getStyle(\"space-right\");return a.setTranslate(c.right+i+2,-5),new e.Box({x:c.right+i,y:-11,width:24,height:22})}})}})}},b[49]={value:function(a,c,d){var e=b.r(17),f=b.r(15),g=b.r(20);b.r(9);g.register(\"ImageViewer\",function(){function a(a,b,d){var e=document.createElement(a);return c(e,b),d&&d.length&&d.forEach(function(a){e.appendChild(a)}),e}function b(a,b,c){a.addEventListener(b,c)}function c(a,b){b&&b.split(\" \").forEach(function(b){a.classList.add(b)})}var d=e.createClass(\"ImageViewer\",{constructor:function(){var c=a(\"button\",\"km-image-viewer-btn km-image-viewer-close\"),d=a(\"button\",\"km-image-viewer-btn km-image-viewer-source\"),e=this.image=a(\"img\"),f=this.toolbar=a(\"div\",\"km-image-viewer-toolbar\",[d,c]),g=a(\"div\",\"km-image-viewer-container\",[e]),h=this.viewer=a(\"div\",\"km-image-viewer\",[f,g]);this.hotkeyHandler=this.hotkeyHandler.bind(this),b(c,\"click\",this.close.bind(this)),b(d,\"click\",this.viewSource.bind(this)),b(e,\"click\",this.zoomImage.bind(this)),b(h,\"contextmenu\",this.toggleToolbar.bind(this)),b(document,\"keydown\",this.hotkeyHandler)},dispose:function(){this.close(),document.removeEventListener(\"remove\",this.hotkeyHandler)},hotkeyHandler:function(a){this.actived&&a.keyCode===f.esc&&this.close()},toggleToolbar:function(a){a&&a.preventDefault(),this.toolbar.classList.toggle(\"hidden\")},zoomImage:function(a){var b=this.image;\"boolean\"==typeof a?a&&c(b,\"limited\"):b.classList.toggle(\"limited\")},viewSource:function(a){window.open(this.image.src)},open:function(a){var b=document.querySelector(\"input\");b&&(b.focus(),b.blur()),this.image.src=a,this.zoomImage(!0),document.body.appendChild(this.viewer),this.actived=!0},close:function(){this.image.src=\"\",document.body.removeChild(this.viewer),this.actived=!1}});return{init:function(){this.viewer=new d},events:{\"normal.dblclick\":function(a){var b=a.kityEvent.targetShape;\"Image\"===b.__KityClassName&&b.url&&this.viewer.open(b.url)}}}})}},b[50]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(27);g.register(\"image\",function(){function a(a,b){var c=document.createElement(\"img\");c.onload=function(){b(c.width,c.height)},c.onerror=function(){b(null)},c.src=a}function b(a,b,c,d){var e=a/b,f=c/d;return a>c&&e>f?(a=c,b=a/e):b>d&&(b=d,a=b*e),{width:0|a,height:0|b}}return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:e.createClass(\"ImageCommand\",{base:f,execute:function(c,d,e){var f=c.getSelectedNodes();a(d,function(a,g){f.forEach(function(f){var h=b(a,g,c.getOption(\"maxImageWidth\"),c.getOption(\"maxImageHeight\"));f.setData(\"image\",d),f.setData(\"imageTitle\",d&&e),f.setData(\"imageSize\",d&&h),f.render()}),c.fire(\"saveScene\"),c.layout(300)})},queryState:function(a){var b=a.getSelectedNodes(),c=0;return 0===b.length?-1:(b.forEach(function(a){if(a&&a.getData(\"image\"))return c=0,!1}),c)},queryValue:function(a){var b=a.getSelectedNode();return{url:b.getData(\"image\"),title:b.getData(\"imageTitle\")}}})},renderers:{top:e.createClass(\"ImageRenderer\",{base:h,create:function(a){return new e.Image(a.getData(\"image\"))},shouldRender:function(a){return a.getData(\"image\")},update:function(a,b,c){var d=b.getData(\"image\"),f=b.getData(\"imageTitle\"),g=b.getData(\"imageSize\"),h=b.getStyle(\"space-top\");if(g){f&&a.node.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"title\",f);var i=c.cx-g.width/2,j=c.y-g.height-h;return a.setUrl(d).setX(0|i).setY(0|j).setWidth(0|g.width).setHeight(0|g.height),new e.Box(0|i,0|j,0|g.width,0|g.height)}}})}}})}},b[51]={value:function(a,c,d){var e=(b.r(17),b.r(33),b.r(15),b.r(19),b.r(21),b.r(9),b.r(20));b.r(27);e.register(\"KeyboardModule\",function(){function a(a){var b,d=[];a.traverse(function(a){b=a.getLayoutBox(),b.width&&b.height&&d.push({left:b.x,top:b.y,right:b.x+b.width,bottom:b.y+b.height,width:b.width,height:b.height,node:a})});for(var e=0;e<d.length;e++)c(d,e)}function b(a,b){var c,d,h,i,j,k,l;c=e(a.left,b.left),d=f(a.right,b.right),h=e(a.top,b.top),i=f(a.bottom,b.bottom),j=d-c-a.width-b.width,k=i-h-a.height-b.height,l=j<0?k:k<0?j:g(j*j+k*k);var m=a.node,n=b.node;return m.parent==n.parent&&(l/=10),n.parent==m&&(l/=5),l}function c(a,c){for(var d,e,f=a[c],g={},h=0;h<a.length;h++)h!=c&&(d=a[h],e=b(d,f),d.right<f.left&&(!g.left||e<g.left.dist)&&(g.left={dist:e,node:d.node}),d.left>f.right&&(!g.right||e<g.right.dist)&&(g.right={dist:e,node:d.node}),d.bottom<f.top&&(!g.top||e<g.top.dist)&&(g.top={dist:e,node:d.node}),d.top>f.bottom&&(!g.down||e<g.down.dist)&&(g.down={dist:e,node:d.node}));f.node._nearestNodes={right:g.right&&g.right.node||null,top:g.top&&g.top.node||null,left:g.left&&g.left.node||null,down:g.down&&g.down.node||null}}function d(b,c){var d=b.getSelectedNode();if(!d)return b.select(b.getRoot()),void a(b.getRoot());d._nearestNodes||a(b.getRoot());var e=d._nearestNodes[c];e&&b.select(e,!0)}var e=Math.min,f=Math.max,g=(Math.abs,Math.sqrt);Math.exp;return{events:{layoutallfinish:function(){a(this.getRoot())},\"normal.keydown readonly.keydown\":function(a){var b=this;[\"left\",\"right\",\"up\",\"down\"].forEach(function(c){a.isShortcutKey(c)&&(d(b,\"up\"==c?\"top\":c),a.preventDefault())})}}}})}},b[52]={value:function(a,c,d){var e=b.r(17),f=b.r(9),g=b.r(20),h=e.createClass(\"LayoutCommand\",{base:f,execute:function(a,b){a.getSelectedNodes().forEach(function(a){a.layout(b)})},queryValue:function(a){var b=a.getSelectedNode();if(b)return b.getData(\"layout\")},queryState:function(a){return a.getSelectedNode()?0:-1}}),i=e.createClass(\"ResetLayoutCommand\",{base:f,execute:function(a){var b=a.getSelectedNodes();b.length||(b=[a.getRoot()]),b.forEach(function(a){a.traverse(function(a){a.resetLayoutOffset(),a.isRoot()||a.setData(\"layout\",null)})}),a.layout(300)},enableReadOnly:!0});g.register(\"LayoutModule\",{commands:{layout:h,resetlayout:i},contextmenu:[{command:\"resetlayout\"},{divider:!0}],commandShortcutKeys:{resetlayout:\"Ctrl+Shift+L\"}})}},b[53]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21)),g=b.r(9),h=b.r(20),i=(b.r(27),e.createClass(\"AppendChildCommand\",{base:g,execute:function(a,b){var c=a.getSelectedNode();if(!c)return null;var d=a.createNode(b,c);a.select(d,!0),c.isExpanded()?d.render():(c.expand(),c.renderTree()),a.layout(600)},queryState:function(a){return a.getSelectedNode()?0:-1}})),j=e.createClass(\"AppendSiblingCommand\",{base:g,execute:function(a,b){var c=a.getSelectedNode(),d=c.parent;if(!d)return a.execCommand(\"AppendChildNode\",b);var e=a.createNode(b,d,c.getIndex()+1);e.setGlobalLayoutTransform(c.getGlobalLayoutTransform()),a.select(e,!0),e.render(),a.layout(600)},queryState:function(a){return a.getSelectedNode()?0:-1}}),k=e.createClass(\"RemoverNodeCommand\",{base:g,execute:function(a){var b=a.getSelectedNodes(),c=f.getCommonAncestor.apply(null,b),d=b[0].getIndex();if(b.forEach(function(b){b.isRoot()||a.removeNode(b)}),1==b.length){var e=c.children[d-1]||c.children[d];a.select(e||c||a.getRoot(),!0)}else a.select(c||a.getRoot(),!0);a.layout(600)},queryState:function(a){var b=a.getSelectedNode();return b&&!b.isRoot()?0:-1}}),l=e.createClass(\"AppendParentCommand\",{base:g,execute:function(a,b){var c=a.getSelectedNodes();c.sort(function(a,b){return a.getIndex()-b.getIndex()});var d=c[0].parent,e=a.createNode(b,d,c[0].getIndex());c.forEach(function(a){e.appendChild(a)}),e.setGlobalLayoutTransform(c[c.length>>1].getGlobalLayoutTransform()),a.select(e,!0),a.layout(600)},queryState:function(a){var b=a.getSelectedNodes();if(!b.length)return-1;var c=b[0].parent;if(!c)return-1;for(var d=1;d<b.length;d++)if(b[d].parent!=c)return-1;return 0}});h.register(\"NodeModule\",function(){return{commands:{AppendChildNode:i,AppendSiblingNode:j,RemoveNode:k,AppendParentNode:l},commandShortcutKeys:{appendsiblingnode:\"normal::Enter\",appendchildnode:\"normal::Insert|Tab\",appendparentnode:\"normal::Shift+Tab|normal::Shift+Insert\",removenode:\"normal::Del|Backspace\"}}})}},b[54]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=b.r(27);g.register(\"NoteModule\",function(){var a=\"M9,9H3V8h6L9,9L9,9z M9,7H3V6h6V7z M9,5H3V4h6V5z M8.5,11H2V2h8v7.5 M9,12l2-2V1H1v11\",b=e.createClass(\"NoteCommand\",{base:f,execute:function(a,b){var c=a.getSelectedNode();c.setData(\"note\",b),c.render(),c.getMinder().layout(300)},queryState:function(a){return 1===a.getSelectedNodes().length?0:-1},queryValue:function(a){var b=a.getSelectedNode();return b&&b.getData(\"note\")}}),c=e.createClass(\"NoteIcon\",{base:e.Group,constructor:function(){this.callBase(),this.width=16,this.height=17,this.rect=new e.Rect(16,17,.5,-8.5,2).fill(\"transparent\"),this.path=(new e.Path).setPathData(a).setTranslate(2.5,-6.5),this.addShapes([this.rect,this.path]),this.on(\"mouseover\",function(){this.rect.fill(\"rgba(255, 255, 200, .8)\")}).on(\"mouseout\",function(){this.rect.fill(\"transparent\")}),this.setStyle(\"cursor\",\"pointer\")}});return{renderers:{right:e.createClass(\"NoteIconRenderer\",{base:h,create:function(a){var b=new c;return b.on(\"mousedown\",function(b){b.preventDefault(),a.getMinder().fire(\"editnoterequest\")}),b.on(\"mouseover\",function(){a.getMinder().fire(\"shownoterequest\",{node:a,icon:b})}),b.on(\"mouseout\",function(){a.getMinder().fire(\"hidenoterequest\",{node:a,icon:b})}),b},shouldRender:function(a){return a.getData(\"note\")},update:function(a,b,c){var d=c.right+b.getStyle(\"space-left\"),f=c.cy;return a.path.fill(b.getStyle(\"color\")),a.setTranslate(d,f),new e.Box(d,Math.round(f-a.height/2),a.width,a.height)}})},commands:{note:b}}})}},b[55]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=(b.r(19),b.r(21),b.r(9),b.r(20)),h=b.r(27),i=e.createClass(\"OutlineRenderer\",{base:h,create:function(a){var b=(new e.Rect).setId(f.uuid(\"node_outline\"));return this.bringToBack=!0,b},update:function(a,b,c){var d=b.getStyle(\"shape\"),f=b.getStyle(\"padding-left\"),g=b.getStyle(\"padding-right\"),h=b.getStyle(\"padding-top\"),i=b.getStyle(\"padding-bottom\"),j={x:c.x-f,y:c.y-h,width:c.width+f+g,height:c.height+h+i},k=b.getStyle(\"radius\");if(d&&\"circle\"==d){var l=Math.pow;k=(0,Math.round)(Math.sqrt(l(j.width,2)+l(j.height,2))/2),j.x=c.cx-k,j.y=c.cy-k,j.width=2*k,j.height=2*k}var m=b.isSelected()?b.getMinder().isFocused()?\"selected-\":\"blur-selected-\":\"\";return a.setPosition(j.x,j.y).setSize(j.width,j.height).setRadius(k).fill(b.getData(\"background\")||b.getStyle(m+\"background\")||b.getStyle(\"background\")).stroke(b.getStyle(m+\"stroke\"||b.getStyle(\"stroke\")),b.getStyle(m+\"stroke-width\")),new e.Box(j)}}),j=e.createClass(\"ShadowRenderer\",{base:h,create:function(a){return this.bringToBack=!0,new e.Rect},shouldRender:function(a){return a.getStyle(\"shadow\")},update:function(a,b,c){a.setPosition(c.x+4,c.y+5).fill(b.getStyle(\"shadow\"));var d=b.getStyle(\"shape\");if(d){if(\"circle\"==d){var e=Math.max(c.width,c.height);a.setSize(e,e),a.setRadius(e/2)}}else a.setSize(c.width,c.height),a.setRadius(b.getStyle(\"radius\"))}}),k=new e.Marker;k.setWidth(10),k.setHeight(12),k.setRef(0,0),k.setViewBox(-6,-4,8,10),k.addShape((new e.Path).setPathData(\"M-5-3l5,3,-5,3\").stroke(\"#33ffff\"));var l=/wire/.test(window.location.href),m=e.createClass(\"WireframeRenderer\",{base:h,create:function(){var a=new e.Group,b=this.oxy=(new e.Path).stroke(\"#f6f\").setPathData(\"M0,-50L0,50M-50,0L50,0\"),c=this.wireframe=(new e.Rect).stroke(\"lightgreen\"),d=this.vectorIn=(new e.Path).stroke(\"#66ffff\"),f=this.vectorOut=(new e.Path).stroke(\"#66ffff\");return d.setMarker(k,\"end\"),f.setMarker(k,\"end\"),a.addShapes([b,c,d,f])},shouldRender:function(){return l},update:function(a,b,c){this.wireframe.setPosition(c.x,c.y).setSize(c.width,c.height);var d=b.getVertexIn(),e=b.getVertexOut(),f=b.getLayoutVectorIn().normalize(30),g=b.getLayoutVectorOut().normalize(30);this.vectorIn.setPathData([\"M\",d.offset(f.reverse()),\"L\",d]),this.vectorOut.setPathData([\"M\",e,\"l\",g])}});g.register(\"OutlineModule\",function(){return{events:l?{ready:function(){this.getPaper().addResource(k)},layoutallfinish:function(){this.getRoot().traverse(function(a){a.getRenderer(\"WireframeRenderer\").update(null,a,a.getContentBox())})}}:null,renderers:{outline:i,outside:[j,m]}}})}},b[56]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=(b.r(19),b.r(21),b.r(9)),h=b.r(20),i=b.r(27);h.register(\"PriorityModule\",function(){var a=[null,[\"#FF1200\",\"#840023\"],[\"#0074FF\",\"#01467F\"],[\"#00AF00\",\"#006300\"],[\"#FF962E\",\"#B25000\"],[\"#A464FF\",\"#4720C4\"],[\"#A3A3A3\",\"#515151\"],[\"#A3A3A3\",\"#515151\"],[\"#A3A3A3\",\"#515151\"],[\"#A3A3A3\",\"#515151\"]],b=\"M0,13c0,3.866,3.134,7,7,7h6c3.866,0,7-3.134,7-7V7H0V13z\",c=\"M20,10c0,3.866-3.134,7-7,7H7c-3.866,0-7-3.134-7-7V7c0-3.866,3.134-7,7-7h6c3.866,0,7,3.134,7,7V10z\",d=\"priority\",h=e.createClass(\"PriorityIcon\",{base:e.Group,constructor:function(){this.callBase(),this.setSize(20),this.create(),this.setId(f.uuid(\"node_priority\"))},setSize:function(a){this.width=this.height=a},create:function(){var a,d,f;(new e.Path).setPathData(c).fill(\"white\"),a=(new e.Path).setPathData(b).setTranslate(.5,.5),d=(new e.Path).setPathData(c).setOpacity(.8).setTranslate(.5,.5),f=(new e.Text).setX(this.width/2-.5).setY(this.height/2).setTextAnchor(\"middle\").setVerticalAlign(\"middle\").setFontItalic(!0).setFontSize(12).fill(\"white\"),this.addShapes([a,d,f]),this.mask=d,this.back=a,this.number=f},setValue:function(b){var c=this.back,d=this.mask,e=this.number,f=a[b];f&&(c.fill(f[1]),d.fill(f[0])),e.setContent(b)}});return{commands:{priority:e.createClass(\"SetPriorityCommand\",{base:g,execute:function(a,b){for(var c=a.getSelectedNodes(),e=0;e<c.length;e++)c[e].setData(d,b||null).render();a.layout()},queryValue:function(a){for(var b,c=a.getSelectedNodes(),e=0;e<c.length&&!(b=c[e].getData(d));e++);return b||null},queryState:function(a){return a.getSelectedNodes().length?0:-1}})},renderers:{left:e.createClass(\"PriorityRenderer\",{base:i,create:function(a){return new h},shouldRender:function(a){return a.getData(d)},update:function(a,b,c){var f,g,h=b.getData(d),i=b.getStyle(\"space-left\");return a.setValue(h),f=c.left-a.width-i,g=-a.height/2,a.setTranslate(f,g),new e.Box({x:f,y:g,width:a.width,height:a.height})}})}}})}},b[57]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=(b.r(19),b.r(21),b.r(9)),h=b.r(20),i=b.r(27);h.register(\"ProgressModule\",function(){var a=this,b=\"progress\",c=\"#FFED83\",d=\"#43BC00\",h=\"M10,3c4.418,0,8,3.582,8,8h1c0-5.523-3.477-10-9-10S1,5.477,1,11h1C2,6.582,5.582,3,10,3z\",j=\"#8E8E8E\",k=\"M10,0C4.477,0,0,4.477,0,10c0,5.523,4.477,10,10,10s10-4.477,10-10C20,4.477,15.523,0,10,0zM10,18c-4.418,0-8-3.582-8-8s3.582-8,8-8s8,3.582,8,8S14.418,18,10,18z\",l=(new e.LinearGradient).pipe(function(a){a.setStartPosition(0,0),a.setEndPosition(0,1),a.addStop(0,\"#fff\"),a.addStop(1,\"#ccc\")}),m=\"M15.812,7.896l-6.75,6.75l-4.5-4.5L6.25,8.459l2.812,2.803l5.062-5.053L15.812,7.896z\",n=\"#EEE\";a.getPaper().addResource(l);var o=e.createClass(\"ProgressIcon\",{base:e.Group,constructor:function(a){this.callBase(),this.setSize(20),this.create(),this.setValue(a),this.setId(f.uuid(\"node_progress\")),this.translate(.5,.5)},setSize:function(a){this.width=this.height=a},create:function(){var a,b,f,g,i;a=new e.Circle(9).fill(c),b=new e.Pie(9,0).fill(d),f=(new e.Path).setPathData(h).setTranslate(-10,-10).fill(j),g=(new e.Path).setTranslate(-10,-10).setPathData(k).fill(l),i=(new e.Path).setTranslate(-10,-10).setPathData(m).fill(n),this.addShapes([a,b,f,i,g]),this.pie=b,this.check=i},setValue:function(a){this.pie.setAngle(-360*(a-1)/8),this.check.setVisible(9==a)}});return{commands:{progress:e.createClass(\"ProgressCommand\",{base:g,execute:function(a,c){for(var d=a.getSelectedNodes(),e=0;e<d.length;e++)d[e].setData(b,c||null).render();a.layout()},queryValue:function(a){for(var c,d=a.getSelectedNodes(),e=0;e<d.length&&!(c=d[e].getData(b));e++);return c||null},queryState:function(a){return a.getSelectedNodes().length?0:-1}})},renderers:{left:e.createClass(\"ProgressRenderer\",{base:i,create:function(a){return new o},shouldRender:function(a){return a.getData(b)},update:function(a,c,d){var f,g,h=c.getData(b),i=c.getStyle(\"space-left\");return a.setValue(h),f=d.left-a.width-i,g=-a.height/2,a.setTranslate(f+a.width/2,g+a.height/2),new e.Box(f,g,a.width,a.height)}})}}})}},b[58]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(9)),h=b.r(20),i=b.r(27);h.register(\"Resource\",function(){var a=function(){var a,b,c,d,e,f,g,h,i,j,k;return k=4*(1<<30),a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],e=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479],j=function(a){return a<0&&(a+=k),(\"00000000\"+a.toString(16)).slice(-8)},f=[[16,50,84,118,152,186,220,254],[174,132,249,109,193,32,123,53],[139,12,37,223,234,99,23,73],[151,19,205,235,98,165,4,143],[9,117,66,250,30,203,134,211],[194,166,176,56,212,87,239,145],[92,241,222,164,112,54,41,184],[189,231,28,147,5,79,104,162],[246,158,59,128,44,125,65,90],[42,72,103,81,191,233,195,13]],g=function(a,b,c){var d=h[a]^h[b];h[a]=d>>>c|d<<32-c},b=function(a,b,j,k,l){var m=d+f[c][a]%16,n=d+(f[c][a]>>4);b%=4,j=4+j%4,k=8+k%4,l=12+l%4,h[b]+=h[j]+(i[m]^e[n%16]),g(l,b,16),h[k]+=h[l],g(j,k,12),h[b]+=h[j]+(i[n]^e[m%16]),g(l,b,8),h[k]+=h[l],g(j,k,7)},function(f,g){g instanceof Array&&4===g.length||(g=[0,0,0,0]);var k,l,m,n,o,p,q,r;for(l=a.slice(0),k=e.slice(0,8),c=0;c<4;c+=1)k[c]^=g[c];if(m=16*f.length,o=m%512>446||m%512==0?0:m,m%512==432)f+=\"老\";else{for(f+=\"耀\";f.length%32!=27;)f+=\"\\0\";f+=\"\u0001\"}for(i=[],r=0;r<f.length;r+=2)i.push(65536*f.charCodeAt(r)+f.charCodeAt(r+1));for(i.push(0),i.push(m),p=i.length-16,q=0,d=0;d<i.length;d+=16){for(q+=512,n=d===p?o:Math.min(m,q),h=l.concat(k),h[12]^=n,h[13]^=n,c=0;c<10;c+=1)for(r=0;r<8;r+=1)r<4?b(r,r,r,r,r):b(r,r,r+1,r+2,r+3);for(r=0;r<8;r+=1)l[r]^=g[r%4]^h[r]^h[r+8]}return l.map(j).join(\"\")}}(),b=[51,303,75,200,157,0,26,254].map(function(a){return e.Color.createHSL(a,100,85)});e.extendClass(f,{getHashCode:function(b){b=a(b);var c,d,e=1315423911;for(c=b.length-1;c>=0;c--)d=b.charCodeAt(c),e^=(e<<5)+d+(e>>2);return 2147483647&e},getResourceColor:function(a){var c,d=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(d,a)||(c=this._getNextResourceColorIndex(),d[a]=c),b[d[a]]||e.Color.createHSL(Math.floor(this.getHashCode(a)/2147483647*359),100,85)},getUsedResource:function(){var a,b=this._getResourceColorIndexMapping(),c=[];for(a in b)Object.prototype.hasOwnProperty.call(b,a)&&c.push(a);return c},_getNextResourceColorIndex:function(){var a,c,d,e=this._getResourceColorIndexMapping();c=[];for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.push(e[a]);for(d=0;d<b.length;d++)if(!~c.indexOf(d))return d;return-1},_getResourceColorIndexMapping:function(){return this._resourceColorMapping||(this._resourceColorMapping={})}});var c=e.createClass(\"ResourceCommand\",{base:g,execute:function(a,b){var c=a.getSelectedNodes();\"string\"==typeof b&&(b=[b]),c.forEach(function(a){a.setData(\"resource\",b).render()}),a.layout(200)},queryValue:function(a){var b=a.getSelectedNodes(),c=[];return b.forEach(function(a){var b=a.getData(\"resource\");b&&b.forEach(function(a){~c.indexOf(a)||c.push(a)})}),c},queryState:function(a){return a.getSelectedNode()?0:-1}}),d=e.createClass(\"ResourceOverlay\",{base:e.Group,constructor:function(){this.callBase();var a,b;b=this.rect=(new e.Rect).setRadius(4),a=this.text=(new e.Text).setFontSize(12).setVerticalAlign(\"middle\"),this.addShapes([b,a])},setValue:function(a,b){var c,d,e,f=8,g=4;c=this.text,a==this.lastResourceName?d=this.lastBox:(c.setContent(a),d=c.getBoundaryBox(),this.lastResourceName=a,this.lastBox=d),c.setX(f).fill(b.dec(\"l\",70)),e=this.rect,e.setPosition(0,d.y-g),this.width=Math.round(d.width+2*f),this.height=Math.round(d.height+2*g),e.setSize(this.width,this.height),e.fill(b)}});return{commands:{resource:c},renderers:{right:e.createClass(\"ResourceRenderer\",{base:i,create:function(a){return this.overlays=[],new e.Group},shouldRender:function(a){return a.getData(\"resource\")&&a.getData(\"resource\").length},update:function(a,b,c){var f=b.getStyle(\"space-right\"),g=this.overlays,h=b.getData(\"resource\").filter(function(a){return null!==a});if(0!==h.length){var i,j,k,l=b.getMinder();for(k=0,i=0;i<h.length;i++)k+=f,j=g[i],j||(j=new d,g.push(j),a.addShape(j)),j.setVisible(!0),j.setValue(h[i],l.getResourceColor(h[i])),j.setTranslate(k,-1),k+=j.width;for(;j=g[i++];)j.setVisible(!1);return a.setTranslate(c.right,0),new e.Box({x:c.right,y:Math.round(-g[0].height/2),width:k,height:g[0].height})}}})}}})}},b[59]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9),b.r(20));b.r(27);f.register(\"Select\",function(){var a=this,b=a.getRenderContainer(),c=function(){var c=null,d=new e.Path,f=!1;return{selectStart:function(a){if(!a.originEvent.button&&!a.originEvent.altKey)return c?this.selectEnd():void(c=a.getPosition(b).round())},selectMove:function(g){if(\"textedit\"!=a.getStatus()&&c){var h=c,i=g.getPosition(b);if(!f){if(e.Vector.fromPoints(h,i).length()<10)return;f=!0,b.addShape(d),d.fill(a.getStyle(\"marquee-background\")).stroke(a.getStyle(\"marquee-stroke\")).setOpacity(.8).getDrawer().clear()}var j=new e.Box(h.x,h.y,i.x-h.x,i.y-h.y),k=[];j.left=Math.round(j.left),j.top=Math.round(j.top),j.right=Math.round(j.right),j.bottom=Math.round(j.bottom),d.getDrawer().pipe(function(){this.clear(),this.moveTo(j.left,j.top),this.lineTo(j.right,j.top),this.lineTo(j.right,j.bottom),this.lineTo(j.left,j.bottom),this.close()}),a.getRoot().traverse(function(a){a.getLayoutBox().intersect(j).isEmpty()||k.push(a)}),a.select(k,!0),window.getSelection().removeAllRanges()}},selectEnd:function(a){c&&(c=null),f&&(d.fadeOut(200,\"ease\",0,function(){d.remove&&d.remove()}),f=!1)}}}(),d=null,f=null;return{init:function(){window.addEventListener(\"mouseup\",function(){c.selectEnd()})},events:{mousedown:function(a){var b=a.getTargetNode();b?a.isShortcutKey(\"Ctrl\")?this.toggleSelect(b):b.isSelected()?this.isSingleSelect()||(d=b,f=a.getPosition()):this.select(b,!0):(this.removeAllSelectedNodes(),c.selectStart(a),this.setStatus(\"normal\"))},mousemove:c.selectMove,mouseup:function(a){var b=a.getTargetNode();if(b&&b==d){var g=a.getPosition();e.Vector.fromPoints(f,g).length()<1&&this.select(d,!0),d=null}c.selectEnd(a)},\"normal.keydown\":function(a){if(a.isShortcutKey(\"ctrl+a\")){var b=[];this.getRoot().traverse(function(a){b.push(a)}),this.select(b,!0),a.preventDefault()}}}}})}},b[60]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20);b.r(27);g.register(\"StyleModule\",function(){function a(a){for(var c=a.getData(),d=0;d<b.length;d++)if(b[d]in c)return!0}var b=[\"font-size\",\"font-family\",\"font-weight\",\"font-style\",\"background\",\"color\"],c=null;return{commands:{copystyle:e.createClass(\"CopyStyleCommand\",{base:f,execute:function(a){var d=a.getSelectedNode(),e=d.getData();return c={},b.forEach(function(a){a in e?c[a]=e[a]:(c[a]=null,delete c[a])}),c},queryState:function(b){var c=b.getSelectedNodes();return 1!==c.length?-1:a(c[0])?0:-1}}),pastestyle:e.createClass(\"PastStyleCommand\",{base:f,execute:function(a){return a.getSelectedNodes().forEach(function(a){for(var b in c)c.hasOwnProperty(b)&&a.setData(b,c[b])}),a.renderNodeBatch(a.getSelectedNodes()),a.layout(300),c},queryState:function(a){return c&&a.getSelectedNodes().length?0:-1}}),clearstyle:e.createClass(\"ClearStyleCommand\",{base:f,execute:function(a){return a.getSelectedNodes().forEach(function(a){b.forEach(function(b){a.setData(b)})}),a.renderNodeBatch(a.getSelectedNodes()),a.layout(300),c},queryState:function(b){var c=b.getSelectedNodes();if(!c.length)return-1;for(var d=0;d<c.length;d++)if(a(c[d]))return 0;return-1}})}}})}},b[61]={value:function(a,c,d){var e=b.r(17),f=b.r(33),g=(b.r(19),b.r(21)),h=b.r(9),i=b.r(20),j=b.r(27),k={safari:{\"微软雅黑,Microsoft YaHei\":-.17,\"楷体,楷体_GB2312,SimKai\":-.1,\"隶书, SimLi\":-.1,\"comic sans ms\":-.23,\"impact,chicago\":-.15,\"times new roman\":-.1,\"arial black,avant garde\":-.17,default:0},ie:{10:{\"微软雅黑,Microsoft YaHei\":-.17,\"comic sans ms\":-.17,\"impact,chicago\":-.08,\"times new roman\":.04,\"arial black,avant garde\":-.17,default:-.15},11:{\"微软雅黑,Microsoft YaHei\":-.17,\"arial,helvetica,sans-serif\":-.17,\"comic sans ms\":-.17,\"impact,chicago\":-.08,\"times new roman\":.04,\"sans-serif\":-.16,\"arial black,avant garde\":-.17,default:-.15}},edge:{\"微软雅黑,Microsoft YaHei\":-.15,\"arial,helvetica,sans-serif\":-.17,\"comic sans ms\":-.17,\"impact,chicago\":-.08,\"sans-serif\":-.16,\"arial black,avant garde\":-.17,default:-.15},sg:{\"微软雅黑,Microsoft YaHei\":-.15,\"arial,helvetica,sans-serif\":-.05,\"comic sans ms\":-.22,\"impact,chicago\":-.16,\"times new roman\":-.03,\"arial black,avant garde\":-.22,default:-.15},chrome:{Mac:{\"andale mono\":-.05,\"comic sans ms\":-.3,\"impact,chicago\":-.13,\"times new roman\":-.1,\"arial black,avant garde\":-.17,default:0},Win:{\"微软雅黑,Microsoft YaHei\":-.15,\"arial,helvetica,sans-serif\":-.02,\"arial black,avant garde\":-.2,\"comic sans ms\":-.2,\"impact,chicago\":-.12,\"times new roman\":-.02,default:-.15},Lux:{\"andale mono\":-.05,\"comic sans ms\":-.3,\"impact,chicago\":-.13,\"times new roman\":-.1,\"arial black,avant garde\":-.17,default:0}},firefox:{Mac:{\"微软雅黑,Microsoft YaHei\":-.2,\"宋体,SimSun\":.05,\"comic sans ms\":-.2,\"impact,chicago\":-.15,\"arial black,avant garde\":-.17,\"times new roman\":-.1,default:.05},Win:{\"微软雅黑,Microsoft YaHei\":-.16,\"andale mono\":-.17,\"arial,helvetica,sans-serif\":-.17,\"comic sans ms\":-.22,\"impact,chicago\":-.23,\"times new roman\":-.22,\"sans-serif\":-.22,\"arial black,avant garde\":-.17,default:-.16},Lux:{\"宋体,SimSun\":-.2,\"微软雅黑,Microsoft YaHei\":-.2,\"黑体, SimHei\":-.2,\"隶书, SimLi\":-.2,\"楷体,楷体_GB2312,SimKai\":-.2,\"andale mono\":-.2,\"arial,helvetica,sans-serif\":-.2,\"comic sans ms\":-.2,\"impact,chicago\":-.2,\"times new roman\":-.2,\"sans-serif\":-.2,\"arial black,avant garde\":-.2,default:-.16}}},l=e.createClass(\"TextRenderer\",{base:j,create:function(){return(new e.Group).setId(f.uuid(\"node_text\"))},update:function(a,b){function c(a){return b.getData(a)||b.getStyle(a)}var d,f=b.getText(),g=f?f.split(\"\\n\"):[\" \"],h=b.getStyle(\"line-height\"),i=c(\"font-size\"),j=c(\"font-family\")||\"default\",l=h*i*g.length-(h-1)*i,m=-l/2,n=e.Browser;n.chrome||n.opera||n.bd||\"chrome\"===n.lb?d=k.chrome[n.platform][j]:n.gecko?d=k.firefox[n.platform][j]:n.sg?d=k.sg[j]:n.safari?d=k.safari[j]:n.ie?d=k.ie[n.version][j]:n.edge?d=k.edge[j]:n.lb&&(d=.9),a.setTranslate(0,(d||0)*i);var o=new e.Box,p=Math.round;this.setTextStyle(b,a);var q,r,s,t,u=g.length,v=a.getItems().length;if(u<v)for(q=u,r;r=a.getItem(q);)a.removeItem(q);else if(u>v)for(var w=u-v;w--;)s=(new e.Text).setAttr(\"text-rendering\",\"inherit\"),e.Browser.ie||e.Browser.edge?s.setVerticalAlign(\"top\"):s.setAttr(\"dominant-baseline\",\"text-before-edge\"),a.addItem(s);for(q=0,s;t=g[q],s=a.getItem(q);q++)s.setContent(t),(e.Browser.ie||e.Browser.edge)&&s.fixPosition();this.setTextStyle(b,a);var x=b.getText()+[\"font-size\",\"font-name\",\"font-weight\",\"font-style\"].map(c).join(\"/\");return b._currentTextHash==x&&b._currentTextGroupBox?b._currentTextGroupBox:(b._currentTextHash=x,function(){a.eachItem(function(a,b){var c=m+a*i*h;b.setY(c);var d=b.getBoundaryBox();o=o.merge(new e.Box(0,c,d.height&&d.width||1,i))});var c=new e.Box(p(o.x),p(o.y),p(o.width),p(o.height));return b._currentTextGroupBox=c,c})},setTextStyle:function(a,b){l._styleHooks.forEach(function(c){c(a,b)})}}),m=e.createClass({base:h,execute:function(a,b){var c=a.getSelectedNode();c&&(c.setText(b),c.render(),a.layout())},queryState:function(a){return 1==a.getSelectedNodes().length?0:-1},queryValue:function(a){var b=a.getSelectedNode();return b?b.getText():null}});f.extend(l,{_styleHooks:[],registerStyleHook:function(a){l._styleHooks.push(a)}}),e.extendClass(g,{getTextGroup:function(){return this.getRenderer(\"TextRenderer\").getRenderShape()}}),i.register(\"text\",{commands:{text:m},renderers:{center:l}}),d.exports=l}},b[62]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19),b.r(21),b.r(9)),g=b.r(20),h=(b.r(27),e.createClass(\"ViewDragger\",{constructor:function(a){this._minder=a,this._enabled=!1,this._bind();var b=this;this._minder.getViewDragger=function(){return b},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(a){var b=this._minder.getPaper();b.setStyle(\"cursor\",a?\"pointer\":\"default\"),b.setStyle(\"cursor\",a?\"-webkit-grab\":\"default\"),this._enabled=a},timeline:function(){return this._moveTimeline},move:function(a,b){var c=(this._minder,this.getMovement().offset(a));this.moveTo(c,b)},moveTo:function(a,b){if(b){var c=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new e.Animator(this.getMovement(),a,function(a,b){c.moveTo(b)}),b,\"easeOutCubic\").timeline(),this._moveTimeline.on(\"finish\",function(){c._moveTimeline=null}),this}this._minder.getRenderContainer().setTranslate(a.round()),this._minder.fire(\"viewchange\")},getMovement:function(){var a=this._minder.getRenderContainer().transform.translate;return a?a[0]:new e.Point},getView:function(){var a=this._minder,b=a._lastClientSize||{width:a.getRenderTarget().clientWidth,height:a.getRenderTarget().clientHeight},c=this.getMovement(),d=new e.Box(0,0,b.width,b.height);return a.getPaper().getViewPortMatrix().inverse().translate(-c.x,-c.y).transformBox(d)},_bind:function(){function a(a){if(d){d=null,a.stopPropagation(),c&&(b.setEnabled(!1),c=!1,\"hand\"==b._minder.getStatus()&&b._minder.rollbackStatus());b._minder.getPaper().setStyle(\"cursor\",\"hand\"==b._minder.getStatus()?\"-webkit-grab\":\"default\"),b._minder.fire(\"viewchanged\")}}var b=this,c=!1,d=null,f=null;this._minder.on(\"normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart\",function(a){2==a.originEvent.button&&a.originEvent.preventDefault(),(a.getTargetNode()==this.getRoot()||2==a.originEvent.button||a.originEvent.altKey)&&(d=a.getPosition(\"view\"),c=!0)}).on(\"normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove\",function(a){if(\"touchmove\"==a.type&&a.preventDefault(),c){if(e.Vector.fromPoints(d,a.getPosition(\"view\")).length()>10){this.setStatus(\"hand\",!0);b._minder.getPaper().setStyle(\"cursor\",\"-webkit-grabbing\")}}}).on(\"hand.beforemousedown hand.beforetouchstart\",function(a){if(b.isEnabled()){d=a.getPosition(\"view\"),a.stopPropagation();b._minder.getPaper().setStyle(\"cursor\",\"-webkit-grabbing\")}}).on(\"hand.beforemousemove hand.beforetouchmove\",function(a){if(d){f=a.getPosition(\"view\");var c=e.Vector.fromPoints(d,f);b.move(c),a.stopPropagation(),a.preventDefault(),a.originEvent.preventDefault(),d=f}}).on(\"mouseup touchend\",a),window.addEventListener(\"mouseup\",a),this._minder.on(\"contextmenu\",function(a){a.preventDefault()})}}));g.register(\"View\",function(){var a=e.createClass(\"ToggleHandCommand\",{base:f,execute:function(a){\"hand\"!=a.getStatus()?a.setStatus(\"hand\",!0):a.rollbackStatus(),this.setContentChanged(!1)},queryState:function(a){return\"hand\"==a.getStatus()?1:0},enableReadOnly:!0}),b=e.createClass(\"CameraCommand\",{base:f,execute:function(a,b){b=b||a.getRoot();var c=a.getPaper().getViewPort(),d=b.getRenderContainer().getRenderBox(\"view\"),f=c.center.x-d.x-d.width/2,g=c.center.y-d.y,h=a._viewDragger,i=a.getOption(\"viewAnimationDuration\");h.move(new e.Point(f,g),i),this.setContentChanged(!1)},enableReadOnly:!0}),c=e.createClass(\"MoveCommand\",{base:f,execute:function(a,b){var c=a._viewDragger,d=a._lastClientSize,f=a.getOption(\"viewAnimationDuration\");switch(b){case\"up\":c.move(new e.Point(0,d.height/2),f);break;case\"down\":c.move(new e.Point(0,-d.height/2),f);break;case\"left\":c.move(new e.Point(d.width/2,0),f);break;case\"right\":c.move(new e.Point(-d.width/2,0),f)}},enableReadOnly:!0});return{init:function(){this._viewDragger=new h(this)},commands:{hand:a,camera:b,move:c},events:{statuschange:function(a){this._viewDragger.setEnabled(\"hand\"==a.currentStatus)},mousewheel:function(a){var b,c;if(a=a.originEvent,!a.ctrlKey&&!a.shiftKey){\"wheelDeltaX\"in a?(b=a.wheelDeltaX||0,c=a.wheelDeltaY||0):(b=0,c=a.wheelDelta),this._viewDragger.move({x:b/2.5,y:c/2.5});var d=this;clearTimeout(this._mousewheeltimer),this._mousewheeltimer=setTimeout(function(){d.fire(\"viewchanged\")},100),a.preventDefault()}},\"normal.dblclick readonly.dblclick\":function(a){a.kityEvent.targetShape instanceof e.Paper&&this.execCommand(\"camera\",this.getRoot(),800)},\"paperrender finishInitHook\":function(){this.getRenderTarget()&&(this.execCommand(\"camera\",null,0),this._lastClientSize={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight})},resize:function(a){var b={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight},c=this._lastClientSize;this._viewDragger.move(new e.Point((b.width-c.width)/2|0,(b.height-c.height)/2|0)),this._lastClientSize=b},\"selectionchange layoutallfinish\":function(a){var b=this.getSelectedNode(),c=this;if(e.Browser.edge&&this.fire(\"paperrender\"),b){var d=this._viewDragger,f=d.timeline();if(f)return void f.on(\"finish\",function(){c.fire(\"selectionchange\")});var g=d.getView(),h=b.getLayoutBox(),i=50,j=0,k=0;h.right>g.right?j+=g.right-h.right-i:h.left<g.left&&(j+=g.left-h.left+i),h.bottom>g.bottom&&(k+=g.bottom-h.bottom-i),h.top<g.top&&(k+=g.top-h.top+i),(j||k)&&d.move(new e.Point(j,k),100)}}}}})}},b[63]={value:function(a,c,d){var e=b.r(17),f=(b.r(33),b.r(19)),g=(b.r(21),b.r(9)),h=b.r(20);b.r(27);h.register(\"Zoom\",function(){function a(){var a=h._zoomValue>=100?\"optimize-speed\":\"geometricPrecision\";h.getRenderContainer().setAttr(\"text-rendering\",a)}function b(a){var b=a.shapeNode,c=b.getCTM(),d=new e.Matrix(c.a,c.b,c.c,c.d,.5+(0|c.e),.5+(0|c.f));b.setAttribute(\"transform\",\"matrix(\"+d.toString()+\")\")}function c(b,c){var f=b.getPaper();f.getViewPort();if(c){a();var g=b.getOption(\"zoomAnimationDuration\");if(b.getRoot().getComplex()>200||!g)b._zoomValue=c,b.zoom(c),b.fire(\"viewchange\");else{var h=new e.Animator({beginValue:b._zoomValue,finishValue:c,setter:function(a,b){a.zoom(b)}});b._zoomValue=c,d&&d.pause(),d=h.start(b,g,\"easeInOutSine\"),d.on(\"finish\",function(){b.fire(\"viewchange\")})}b.fire(\"zoom\",{zoom:c})}}var d,h=this;e.extendClass(f,{zoom:function(a){var c=this.getPaper(),d=c.getViewPort();d.zoom=a/100,d.center={x:d.center.x,y:d.center.y},c.setViewPort(d),100==a&&b(c)},getZoomValue:function(){return this._zoomValue}});var i=e.createClass(\"Zoom\",{base:g,execute:c,queryValue:function(a){return a._zoomValue}}),j=e.createClass(\"ZoomInCommand\",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption(\"zoom\");for(b=0;b<c.length;b++)if(c[b]>a._zoomValue)return c[b];return 0},enableReadOnly:!0}),k=e.createClass(\"ZoomOutCommand\",{base:g,execute:function(a){c(a,this.nextValue(a))},queryState:function(a){return+!this.nextValue(a)},nextValue:function(a){var b,c=a.getOption(\"zoom\");for(b=c.length-1;b>=0;b--)if(c[b]<a._zoomValue)return c[b];return 0},enableReadOnly:!0});return{init:function(){this._zoomValue=100,this.setDefaultOptions({zoom:[10,20,50,100,200]}),a()},commands:{zoomin:j,zoomout:k,zoom:i},events:{\"normal.mousewheel readonly.mousewheel\":function(a){if(a.originEvent.ctrlKey||a.originEvent.metaKey){var b=a.originEvent.wheelDelta,c=this;Math.abs(b)>100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout(function(){c.getPaper()._zoom;b>0?c.execCommand(\"zoomin\"):b<0&&c.execCommand(\"zoomout\")},100),a.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:\"ctrl+=\",zoomout:\"ctrl+-\"}}})}},b[64]={value:function(a,c,d){b.r(12).registerProtocol(\"json\",d.exports={fileDescription:\"KityMinder 格式\",fileExtension:\".km\",dataType:\"text\",mineType:\"application/json\",encode:function(a){return JSON.stringify(a)},decode:function(a){return JSON.parse(a)}})}},b[65]={value:function(a,c,d){function e(a){return f(a,1).join(\"\\n\")}function f(a,b){var c=[];b=b||1;var d=g(b);c.push(d+\" \"+a.data.text),c.push(o);var e=a.data.note;if(e){var h=/^#/.test(e);h&&(c.push(p),e=e.replace(/^#+/gm,function(a){return d+a})),c.push(e),h&&c.push(q),c.push(o)}return a.children&&a.children.forEach(function(a){c=c.concat(f(a,b+1))}),c}function g(a){for(var b=\"\";a--;)b+=\"#\";return b}function h(a){var b,c,d,e,f,g,h,m={};a=a.replace(/^(.+)\\n={3,}/,function(a,b){return\"# \"+b}),b=a.split(n);for(var o=0;o<b.length;o++)c=b[o],d=k(c),d.noteClose?g=!1:d.noteStart?g=!0:(h=d.codeBlock?!h:h,g||h||!d.level||d.level>e+1?f&&j(f,c):(e=d.level,f=i(d.content,m[e-1]),m[e]=f));return l(m[1]),m[1]}function i(a,b){var c={data:{text:a,note:\"\"}};return b&&(b.children?b.children.push(c):b.children=[c]),c}function j(a,b){a.data.note+=b+\"\\n\"}function k(a){var b=/^(#+)?\\s*(.*)$/.exec(a);return{level:b[1]&&b[1].length||null,content:b[2],noteStart:a==p,noteClose:a==q,codeBlock:/^\\s*```/.test(a)}}function l(a){if(/\\S/.test(a.data.note)){for(var b=a.data.note.split(\"\\n\");b.length&&!/\\S/.test(b[0]);)b.shift();for(;b.length&&!/\\S/.test(b[b.length-1]);)b.pop();a.data.note=b.join(\"\\n\")}else a.data.note=null,delete a.data.note;a.children&&a.children.forEach(l)}var m=b.r(12),n=/\\r\\n|\\r|\\n/,o=\"\",p=\"\\x3c!--Note--\\x3e\",q=\"\\x3c!--/Note--\\x3e\";m.registerProtocol(\"markdown\",d.exports={fileDescription:\"Markdown/GFM 格式\",fileExtension:\".md\",mineType:\"text/markdown\",dataType:\"text\",encode:function(a){return e(a.root)},decode:function(a){return h(a)}})}},b[66]={value:function(a,c,d){function e(a,b){return new k(function(b,c){var d=document.createElement(\"img\");d.onload=function(){b({element:this,x:a.x,y:a.y,width:a.width,height:a.height})},d.onerror=function(a){c(a)},d.crossOrigin=\"anonymous\",d.src=a.url})}function f(a,b){return k(function(b,c){var d=new XMLHttpRequest;d.open(\"GET\",a.url+\"?_=\"+Date.now(),!0),d.responseType=\"blob\",d.onreadystatechange=function(){if(4===d.readyState&&200===d.status){var c=d.response,e=document.createElement(\"img\");e.src=l.createObjectURL(c),e.onload=function(){l.revokeObjectURL(e.src),b({element:e,x:a.x,y:a.y,width:a.width,height:a.height})}}},d.send()})}function g(a){function b(c){var d=c.data;if(d.image){a.renderNode(c);var d=c.data,e=d.image,f=d.imageSize,g=c.getRenderBox(\"ImageRenderer\",a.getRenderContainer()),h={url:e,width:f.width,height:f.height,x:-j.getBoundaryBox().x+g.x,y:-j.getBoundaryBox().y+g.y};o.push(h)}if(\"collapse\"!==d.expandState)for(var i=c.getChildren(),k=0;k<i.length;k++)b(i[k])}var c,d,e,f,g,h,i=a.getPaper(),j=(i.container,a.getRenderContainer()),k=j.getRenderBox(),m=k.width+1,n=k.height+1;c=i.shapeNode.getAttribute(\"transform\"),i.shapeNode.setAttribute(\"transform\",\"translate(0.5, 0.5)\"),j.translate(-k.x,-k.y),d=i.container.innerHTML,j.translate(k.x,k.y),i.shapeNode.setAttribute(\"transform\",c),e=document.createElement(\"div\"),e.innerHTML=d,f=e.querySelector(\"svg\"),f.setAttribute(\"width\",k.width+1),f.setAttribute(\"height\",k.height+1),f.setAttribute(\"style\",'font-family: Arial, \"Microsoft Yahei\",\"Heiti SC\";'),e=document.createElement(\"div\"),e.appendChild(f),d=e.innerHTML,d=d.replace(' xmlns=\"http://www.w3.org/2000/svg\" xmlns:NS1=\"\" NS1:ns1:xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:NS2=\"\" NS2:xmlns:ns1=\"\"',\"\"),d=d.replace(/&nbsp;|[\\x00-\\x1F\\x7F-\\x9F]/g,\"\"),d=d.replace(/NS\\d+:title/gi,\"xlink:title\"),g=new Blob([d],{type:\"image/svg+xml\"}),h=l.createObjectURL(g);var o=[];return b(a.getRoot()),{width:m,height:n,dataUrl:h,xml:d,imagesInfo:o}}function h(a,b,c){function d(a,b){a.save(),a.fillStyle=b,a.fillRect(0,0,o.width,o.height),a.restore()}function h(a,b,c,d,e,f){e&&f?a.drawImage(b,c+A,d+A,e,f):a.drawImage(b,c+A,d+A)}function j(a){return a.toDataURL(\"image/png\")}function m(a){var b=a.map(function(a){return f(a)});return k.all(b)}function n(){return e({url:y}).then(function(a){return h(p,a.element,w,x,a.width,a.height),m(z)}).then(function(a){for(var b=0;b<a.length;b++)h(p,a[b].element,a[b].x+w,a[b].y+x,a[b].width,a[b].height);l.revokeObjectURL(y),document.body.appendChild(o);var c=j(o);return document.body.removeChild(o),c},function(a){alert(\"脑图的节点中包含跨域图片，导出的 png 中节点图片不显示，你可以替换掉这些跨域的图片并重试。\"),l.revokeObjectURL(y),document.body.appendChild(o);var b=j(o);return document.body.removeChild(o),b})}var o=document.createElement(\"canvas\"),p=o.getContext(\"2d\"),q=b.getStyle(\"background\").toString(),r=/url\\(\\\"(.+)\\\"\\)/.exec(q),s=i.Color.parse(q),t=g(b),u=c&&c.width&&c.width>t.width?c.width:t.width,v=c&&c.height&&c.height>t.height?c.height:t.height,w=c&&c.width&&c.width>t.width?(c.width-t.width)/2:0,x=c&&c.height&&c.height>t.height?(c.height-t.height)/2:0,y=t.dataUrl,z=t.imagesInfo,A=20;if(o.width=u+2*A,o.height=v+2*A,r){return e({url:r[1]}).then(function(a){return d(p,p.createPattern(a.element,\"repeat\")),n()})}return d(p,s.toString()),n()}var i=b.r(17),j=b.r(12),k=b.r(25),l=window.URL||window.webkitURL||window;j.registerProtocol(\"png\",d.exports={fileDescription:\"PNG 图片\",fileExtension:\".png\",mineType:\"image/png\",dataType:\"base64\",encode:h})}},b[67]={value:function(a,c,d){function e(a,b,c){function d(a,b){var c;try{c=b.getScreenCTM().inverse()}catch(a){throw new Error(\"Can not inverse source element' ctm.\")}return c.multiply(a.getScreenCTM())}function e(a,b){b instanceof Function||(b=function(){});for(var c=[],d=[],e=[],f=0,g=a.length;f<g;f++)switch(a[f]){case\"M\":case\"L\":case\"T\":case\"S\":case\"A\":case\"C\":case\"H\":case\"V\":case\"Q\":e.length&&(d.push(e.join(\"\")),e=[]),\",\"===d[d.length-1]&&d.pop(),d.length&&(b(d),c.push(d.join(\"\")),d=[]),d.push(a[f]);break;case\"Z\":case\"z\":d.push(e.join(\"\"),a[f]),b(d),c.push(d.join(\"\")),e=[],d=[];break;case\".\":case\"e\":e.push(a[f]);break;case\"-\":\"e\"!==a[f-1]&&(e.length&&d.push(e.join(\"\"),\",\"),e=[]),e.push(\"-\");break;case\" \":case\",\":e.length&&(d.push(e.join(\"\"),\",\"),e=[]);break;default:/\\d/.test(a[f])?e.push(a[f]):e.length?(d.push(e.join(\"\"),a[f]),e=[]):(\",\"===d[d.length-1]&&d.pop(),d.push(a[f])),f+1===g&&(e.length&&d.push(e.join(\"\")),b(d),c.push(d.join(\"\")),e=null,d=null)}return c.join(\"\")}function f(a,b,c){if(a&&\"defs\"!==a.tagName){if(\"transparent\"===a.getAttribute(\"fill\")&&a.setAttribute(\"fill\",\"none\"),a.getAttribute(\"marker-end\")&&a.removeAttribute(\"marker-end\"),b=b||0,c=c||0,a.getAttribute(\"transform\")){var g=d(a,a.parentElement);b-=g.e,c-=g.f,a.removeAttribute(\"transform\")}switch(a.tagName.toLowerCase()){case\"g\":break;case\"path\":var h=a.getAttribute(\"d\");return void(h&&(h=e(h,function(a){switch(a[0]){case\"V\":a[1]=+a[1]-c;break;case\"H\":a[1]=+a[1]-b;break;case\"M\":case\"L\":case\"T\":a[1]=+a[1]-b,a[3]=+a[3]-c;break;case\"Q\":case\"S\":a[1]=+a[1]-b,a[3]=+a[3]-c,a[5]=+a[5]-b,a[7]=+a[7]-c;break;case\"A\":a[11]=+a[11]-b,a[13]=+a[13]-c;break;case\"C\":a[1]=+a[1]-b,a[3]=+a[3]-c,a[5]=+a[5]-b,a[7]=+a[7]-c,a[9]=+a[9]-b,a[11]=+a[11]-c}}),a.setAttribute(\"d\",h),a.removeAttribute(\"transform\")));case\"image\":case\"text\":if(b&&c){var i=+a.getAttribute(\"x\")||0,j=+a.getAttribute(\"y\")||0;a.setAttribute(\"x\",i-b),a.setAttribute(\"y\",j-c)}return a.getAttribute(\"dominant-baseline\")&&(a.removeAttribute(\"dominant-baseline\"),a.setAttribute(\"dy\",\".8em\")),void a.removeAttribute(\"transform\")}if(a.children)for(var k=0,l=a.children.length;k<l;k++)f(a.children[k],b,c)}}a.style.visibility=\"hidden\",f(a,b||0,c||0),a.style.visibility=\"visible\"}b.r(12).registerProtocol(\"svg\",d.exports={fileDescription:\"SVG 矢量图\",fileExtension:\".svg\",mineType:\"image/svg+xml\",dataType:\"text\",encode:function(a,b){var c,d,f,g=b.getPaper(),h=g.shapeNode.getAttribute(\"transform\"),i=b.getRenderContainer(),j=i.getRenderBox(),k=(i.getTransform(),j.width),l=j.height,m=20;return g.shapeNode.setAttribute(\"transform\",\"translate(0.5, 0.5)\"),c=g.container.innerHTML,g.shapeNode.setAttribute(\"transform\",h),d=document.createElement(\"div\"),document.body.appendChild(d),d.innerHTML=c,f=d.querySelector(\"svg\"),f.setAttribute(\"width\",k+2*m|0),f.setAttribute(\"height\",l+2*m|0),f.setAttribute(\"style\",\"background: \"+b.getStyle(\"background\")),f.setAttribute(\"viewBox\",[0,0,k+2*m|0,l+2*m|0].join(\" \")),tempSvgContainer=document.createElement(\"div\"),e(f,j.x-m|0,j.y-m|0),document.body.removeChild(d),tempSvgContainer.appendChild(f),c=tempSvgContainer.innerHTML,c=c.replace(/&nbsp;/g,\"&#xa0;\")}})}},b[68]={value:function(a,c,d){function e(a,b){for(var c=\"\";b--;)c+=a;return c}function f(a){if(!a)return\"\";for(var b=[],c=[\"\\\\\",\"n\"],d=0,e=0,f=a.length;d<f;d++)if(\"\\n\"!==a[d]&&\"\\r\"!==a[d])if(a[d]!==c[e]){switch(e){case 0:b.push(a[d]);break;case 1:b.push(a[d-1],a[d])}e=0}else 2===++e&&(e=0,b.push(\"\\\\\\\\n\"));else b.push(\"\\\\n\"),e=0;return b.join(\"\")}function g(a){if(!a)return\"\";for(var b=[],c=[\"\\\\\",\"\\\\\",\"n\"],d=0,e=0,f=a.length;d<f;d++)if(a[d]!==c[e])switch(e){case 0:b.push(a[d]),e=0;break;case 1:\"n\"===a[d]?b.push(\"\\n\"):b.push(a[d-1],a[d]),e=0;break;case 2:b.push(a[d-2]),\"\\\\\"!==a[d]&&(e=0,b.push(a[d-1],a[d]))}else 3===++e&&(e=0,b.push(\"\\\\n\"));return b.join(\"\")}function h(a,b){var c=\"\";return b=b||0,c+=e(\"\\t\",b),c+=f(a.data.text)+p,a.children&&a.children.forEach(function(a){c+=h(a,b+1)}),c}function i(a){return!/\\S/.test(a)}function j(a){for(var b=0;r.REGEXP.test(a);)a=a.replace(r.REGEXP,\"\"),b++;return b}function k(a){return{data:{text:g(a.replace(r.DELETE,\"\"))}}}function l(a){function b(a,b){(a.children||(a.children=[])).push(b)}for(var c,d,e,f,g={},h=a.split(q),l=0;l<h.length;l++)if(d=h[l],!i(d)){if(e=j(d),f=k(d),0===e){if(c)throw new Error(\"Invalid local format\");c=f}else{if(!g[e-1])throw new Error(\"Invalid local format\");b(g[e-1],f)}g[e]=f}return c}function m(a){function b(a){var c={};c.data=a.getData();var d=a.getChildren();c.children=[];for(var e=0;e<d.length;e++)c.children.push(b(d[e]));return c}if(a)return/^\\s*$/.test(a.data.text)&&(a.data.text=\"分支主题\"),h(b(a))}var n=b.r(12),o=b.r(17).Browser,p=\"\\r\",q=/\\r\\n|\\r|\\n/,r=function(a){return a.gecko?{REGEXP:new RegExp(\"^(\\t|\"+String.fromCharCode(160,160,32,160)+\")\"),DELETE:new RegExp(\"^(\\t|\"+String.fromCharCode(160,160,32,160)+\")+\")}:a.ie||a.edge?{REGEXP:new RegExp(\"^(\"+String.fromCharCode(32)+\"|\"+String.fromCharCode(160)+\")\"),DELETE:new RegExp(\"^(\"+String.fromCharCode(32)+\"|\"+String.fromCharCode(160)+\")+\")}:{REGEXP:/^(\\t|\\x20{4})/,DELETE:/^(\\t|\\x20{4})+/}}(o);n.registerProtocol(\"text\",d.exports={fileDescription:\"大纲文本\",fileExtension:\".txt\",dataType:\"text\",mineType:\"text/plain\",encode:function(a){return h(a.root,0)},decode:function(a){return l(a)},Node2Text:function(a){return m(a)}})}},b[69]={value:function(a,c,d){b.r(31).register(\"default\",{getLayout:function(a){if(a.getData(\"layout\"))return a.getData(\"layout\");var b=a.getLevel();return 0===b?\"mind\":1===b?a.getLayoutPointPreview().x>0?\"right\":\"left\":a.parent.getLayout()},getConnect:function(a){return 1==a.getLevel()?\"arc\":\"under\"}})}},b[70]={value:function(a,c,d){b.r(31).register(\"filetree\",{getLayout:function(a){return a.getData(\"layout\")?a.getData(\"layout\"):a.isRoot()?\"bottom\":\"filetree-down\"},getConnect:function(a){return 1==a.getLevel()?\"poly\":\"l\"}})}},b[71]={value:function(a,c,d){b.r(31).register(\"fish-bone\",{getLayout:function(a){if(a.getData(\"layout\"))return a.getData(\"layout\");var b=a.getLevel();return 0===b?\"fish-bone-master\":1===b?\"fish-bone-slave\":a.getLayoutPointPreview().y>0?\"filetree-up\":\"filetree-down\"},getConnect:function(a){switch(a.getLevel()){case 1:return\"fish-bone-master\";case 2:return\"line\";default:return\"l\"}}})}},b[72]={value:function(a,c,d){b.r(31).register(\"right\",{getLayout:function(a){return a.getData(\"layout\")||\"right\"},getConnect:function(a){return 1==a.getLevel()?\"arc\":\"bezier\"}})}},b[73]={value:function(a,c,d){b.r(31).register(\"structure\",{getLayout:function(a){return a.getData(\"layout\")||\"bottom\"},getConnect:function(a){return\"poly\"}})}},b[74]={value:function(a,c,d){b.r(31).register(\"tianpan\",{getLayout:function(a){return a.getData(\"layout\")?a.getData(\"layout\"):0===a.getLevel()?\"tianpan\":a.parent.getLayout()},getConnect:function(a){return\"arc_tp\"}})}},b[75]={value:function(a,c,d){var e=b.r(32);[\"classic\",\"classic-compact\"].forEach(function(a){var b=\"classic-compact\"==a;e.register(a,{background:'#3A4144 url(\"\") repeat',\"root-color\":\"#430\",\"root-background\":\"#e9df98\",\"root-stroke\":\"#e9df98\",\"root-font-size\":24,\"root-padding\":b?[10,25]:[15,25],\"root-margin\":b?[15,25]:[30,100],\"root-radius\":30,\"root-space\":10,\"root-shadow\":\"rgba(0, 0, 0, .25)\",\"main-color\":\"#333\",\"main-background\":\"#a4c5c0\",\"main-stroke\":\"#a4c5c0\",\"main-font-size\":16,\"main-padding\":b?[5,15]:[6,20],\"main-margin\":b?[5,10]:20,\"main-radius\":10,\"main-space\":5,\"main-shadow\":\"rgba(0, 0, 0, .25)\",\"sub-color\":\"white\",\"sub-background\":\"transparent\",\"sub-stroke\":\"none\",\"sub-font-size\":12,\"sub-padding\":[5,10],\"sub-margin\":b?[5,10]:[15,20],\"sub-tree-margin\":30,\"sub-radius\":5,\"sub-space\":5,\"connect-color\":\"white\",\"connect-width\":2,\"main-connect-width\":3,\"connect-radius\":5,\"selected-background\":\"rgb(254, 219, 0)\",\"selected-stroke\":\"rgb(254, 219, 0)\",\"selected-color\":\"black\",\"marquee-background\":\"rgba(255,255,255,.3)\",\"marquee-stroke\":\"white\",\"drop-hint-color\":\"yellow\",\"sub-drop-hint-width\":2,\"main-drop-hint-width\":4,\"root-drop-hint-width\":4,\"order-hint-area-color\":\"rgba(0, 255, 0, .5)\",\"order-hint-path-color\":\"#0f0\",\"order-hint-path-width\":1,\"text-selection-color\":\"rgb(27,171,255)\",\"line-height\":1.5})})}},b[76]={value:function(a,c,d){b.r(32).register(\"fish\",{background:'#3A4144 url(\"\") repeat',\"root-color\":\"#430\",\"root-background\":\"#e9df98\",\"root-stroke\":\"#e9df98\",\"root-font-size\":24,\"root-padding\":[35,35],\"root-margin\":30,\"root-radius\":100,\"root-space\":10,\"root-shadow\":\"rgba(0, 0, 0, .25)\",\"main-color\":\"#333\",\"main-background\":\"#a4c5c0\",\"main-stroke\":\"#a4c5c0\",\"main-font-size\":16,\"main-padding\":[6,20],\"main-margin\":[20,20],\"main-radius\":5,\"main-space\":5,\"main-shadow\":\"rgba(0, 0, 0, .25)\",\"sub-color\":\"black\",\"sub-background\":\"white\",\"sub-stroke\":\"white\",\"sub-font-size\":12,\"sub-padding\":[5,10],\"sub-margin\":[10],\"sub-radius\":5,\"sub-space\":5,\"connect-color\":\"white\",\"connect-width\":3,\"main-connect-width\":3,\"connect-radius\":5,\"selected-background\":\"rgb(254, 219, 0)\",\"selected-stroke\":\"rgb(254, 219, 0)\",\"marquee-background\":\"rgba(255,255,255,.3)\",\"marquee-stroke\":\"white\",\"drop-hint-color\":\"yellow\",\"drop-hint-width\":4,\"order-hint-area-color\":\"rgba(0, 255, 0, .5)\",\"order-hint-path-color\":\"#0f0\",\"order-hint-path-width\":1,\"text-selection-color\":\"rgb(27,171,255)\",\"line-height\":1.5})}},b[77]={value:function(a,c,d){function e(a,b,c){return h.Color.createHSL(a,b,c)}function f(a,b){return{background:\"#fbfbfb\",\"root-color\":\"white\",\"root-background\":e(a,37,60),\"root-stroke\":e(a,37,60),\"root-font-size\":16,\"root-padding\":b?[6,12]:[12,24],\"root-margin\":b?10:[30,100],\"root-radius\":5,\"root-space\":10,\"main-color\":\"black\",\"main-background\":e(a,33,95),\"main-stroke\":e(a,37,60),\"main-stroke-width\":1,\"main-font-size\":14,\"main-padding\":[6,20],\"main-margin\":b?8:20,\"main-radius\":3,\"main-space\":5,\"sub-color\":\"black\",\"sub-background\":\"transparent\",\"sub-stroke\":\"none\",\"sub-font-size\":12,\"sub-padding\":b?[3,5]:[5,10],\"sub-margin\":b?[4,8]:[15,20],\"sub-radius\":5,\"sub-space\":5,\"connect-color\":e(a,37,60),\"connect-width\":1,\"connect-radius\":5,\"selected-stroke\":e(a,26,30),\"selected-stroke-width\":\"3\",\"blur-selected-stroke\":e(a,10,60),\"marquee-background\":e(a,100,80).set(\"a\",.1),\"marquee-stroke\":e(a,37,60),\"drop-hint-color\":e(a,26,35),\"drop-hint-width\":5,\"order-hint-area-color\":e(a,100,30).set(\"a\",.5),\"order-hint-path-color\":e(a,100,25),\"order-hint-path-width\":1,\"text-selection-color\":e(a,100,20),\"line-height\":1.5}}var g,h=b.r(17),i=b.r(32),j={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(g in j)i.register(\"fresh-\"+g,f(j[g])),i.register(\"fresh-\"+g+\"-compat\",f(j[g],!0))}},b[78]={value:function(a,c,d){var e=b.r(32);[\"snow\",\"snow-compact\"].forEach(function(a){var b=\"snow-compact\"==a;e.register(a,{background:'#3A4144 url(\"\") repeat',\"root-color\":\"#430\",\"root-background\":\"#e9df98\",\"root-stroke\":\"#e9df98\",\"root-font-size\":24,\"root-padding\":b?[5,10]:[15,25],\"root-margin\":b?15:30,\"root-radius\":5,\"root-space\":10,\"root-shadow\":\"rgba(0, 0, 0, .25)\",\"main-color\":\"#333\",\"main-background\":\"#a4c5c0\",\"main-stroke\":\"#a4c5c0\",\"main-font-size\":16,\"main-padding\":b?[4,10]:[6,20],\"main-margin\":b?[5,10]:[20,40],\"main-radius\":5,\"main-space\":5,\"main-shadow\":\"rgba(0, 0, 0, .25)\",\"sub-color\":\"black\",\"sub-background\":\"white\",\"sub-stroke\":\"white\",\"sub-font-size\":12,\"sub-padding\":[5,10],\"sub-margin\":b?[5,10]:[10,20],\"sub-radius\":5,\"sub-space\":5,\"connect-color\":\"white\",\"connect-width\":2,\"main-connect-width\":3,\"connect-radius\":5,\"selected-background\":\"rgb(254, 219, 0)\",\"selected-stroke\":\"rgb(254, 219, 0)\",\"marquee-background\":\"rgba(255,255,255,.3)\",\"marquee-stroke\":\"white\",\"drop-hint-color\":\"yellow\",\"drop-hint-width\":4,\"order-hint-area-color\":\"rgba(0, 255, 0, .5)\",\"order-hint-path-color\":\"#0f0\",\"order-hint-path-width\":1,\"text-selection-color\":\"rgb(27,171,255)\",\"line-height\":1.5})})}},b[79]={value:function(a,c,d){var e=b.r(32);[\"tianpan\",\"tianpan-compact\"].forEach(function(a){var b=\"tianpan-compact\"==a;e.register(a,{background:'#3A4144 url(\"\") repeat',\"root-color\":\"#430\",\"root-background\":\"#e9df98\",\"root-stroke\":\"#e9df98\",\"root-font-size\":25,\"root-padding\":b?15:20,\"root-margin\":b?[15,25]:100,\"root-radius\":30,\"root-space\":10,\"root-shadow\":\"rgba(0, 0, 0, .25)\",\"root-shape\":\"circle\",\"main-color\":\"#333\",\"main-background\":\"#a4c5c0\",\"main-stroke\":\"#a4c5c0\",\"main-font-size\":15,\"main-padding\":b?10:12,\"main-margin\":b?10:12,\"main-radius\":10,\"main-space\":5,\"main-shadow\":\"rgba(0, 0, 0, .25)\",\"main-shape\":\"circle\",\"sub-color\":\"#333\",\"sub-background\":\"#99ca6a\",\"sub-stroke\":\"#a4c5c0\",\"sub-font-size\":13,\"sub-padding\":5,\"sub-margin\":b?6:10,\"sub-tree-margin\":30,\"sub-radius\":5,\"sub-space\":5,\"sub-shadow\":\"rgba(0, 0, 0, .25)\",\"sub-shape\":\"circle\",\"connect-color\":\"white\",\"connect-width\":2,\"main-connect-width\":3,\"connect-radius\":5,\"selected-background\":\"rgb(254, 219, 0)\",\"selected-stroke\":\"rgb(254, 219, 0)\",\"selected-color\":\"black\",\"marquee-background\":\"rgba(255,255,255,.3)\",\"marquee-stroke\":\"white\",\"drop-hint-color\":\"yellow\",\"sub-drop-hint-width\":2,\"main-drop-hint-width\":4,\"root-drop-hint-width\":4,\"order-hint-area-color\":\"rgba(0, 255, 0, .5)\",\"order-hint-path-color\":\"#0f0\",\"order-hint-path-width\":1,\"text-selection-color\":\"rgb(27,171,255)\",\"line-height\":1.4})})}},b[80]={value:function(a,c,d){b.r(32).register(\"wire\",{background:\"black\",color:\"#999\",stroke:\"none\",padding:10,margin:20,\"font-size\":14,\"connect-color\":\"#999\",\"connect-width\":1,\"selected-background\":\"#999\",\"selected-color\":\"black\",\"marquee-background\":\"rgba(255,255,255,.3)\",\"marquee-stroke\":\"white\",\"drop-hint-color\":\"yellow\",\"sub-drop-hint-width\":2,\"main-drop-hint-width\":4,\"root-drop-hint-width\":4,\"order-hint-area-color\":\"rgba(0, 255, 0, .5)\",\"order-hint-path-color\":\"#0f0\",\"order-hint-path-width\":1,\"text-selection-color\":\"rgb(27,171,255)\",\"line-height\":1.5})}};var c={\"expose-kityminder\":34};a(\"expose-kityminder\")}();</script><style type=\"text/css\">div.output_area img, div.output_area svg{\n",
       "    height:100%;\n",
       "}\n",
       "\n",
       ".km-view {\n",
       "    font-family: \"STHeitiSC-Light\", \"STHeiti\", \"Hei\", \"Heiti SC\", \"Microsoft Yahei\", Arial, sans-serif;\n",
       "    -webkit-user-select: none;\n",
       "    user-select: none;\n",
       "    position:  relative;\n",
       "    height: 400px;\n",
       "}\n",
       "\n",
       ".km-view .km-receiver {\n",
       "    position: absolute;\n",
       "    left: -99999px;\n",
       "    top: -99999px;\n",
       "    width: 20px;\n",
       "    height: 20px;\n",
       "    outline: none;\n",
       "    margin: 0;\n",
       "}\n",
       "\n",
       ".km-view image {\n",
       "    cursor: zoom-in;\n",
       "}\n",
       "\n",
       ".km-image-viewer {\n",
       "    position: fixed;\n",
       "    z-index: 99999;\n",
       "    top: 0;\n",
       "    bottom: 0;\n",
       "    left: 0;\n",
       "    right: 0;\n",
       "    background: rgba(0, 0, 0, .75);\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-container {\n",
       "    position: absolute;\n",
       "    top: 0;\n",
       "    bottom: 0;\n",
       "    left: 0;\n",
       "    right: 0;\n",
       "    text-align: center;\n",
       "    white-space: nowrap;\n",
       "    overflow: auto;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-container::before {\n",
       "    content: '';\n",
       "    display: inline-block;\n",
       "    height: 100%;\n",
       "    width: 0;\n",
       "    font-size: 0;\n",
       "    vertical-align: middle;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-container img {\n",
       "    cursor: zoom-out;\n",
       "    vertical-align: middle;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-container img.limited {\n",
       "    cursor: zoom-in;\n",
       "    max-width: 100%;\n",
       "    max-height: 100%;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-toolbar {\n",
       "    z-index: 1;\n",
       "    background: rgba(0, 0, 0, .75);\n",
       "    text-align: right;\n",
       "    transition: all .25s;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-toolbar.hidden {\n",
       "    transform: translate(0, -100%);\n",
       "    opacity: 0;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-btn {\n",
       "    cursor: pointer;\n",
       "    outline: 0;\n",
       "    border: 0;\n",
       "    width: 44px;\n",
       "    height: 44px;\n",
       "    background: url();\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-toolbar {\n",
       "    position: absolute;\n",
       "    top: 0;\n",
       "    left: 0;\n",
       "    right: 0;\n",
       "}\n",
       "\n",
       ".km-image-viewer .km-image-viewer-close {\n",
       "    background-position: 0 -44px;\n",
       "}</style><script>function renderMind(target, template, theme) {\r\n",
       "    var protocols = { json: 'json', text: 'text', markdown: 'markdown' };\r\n",
       "    var km = new kityminder.Minder();\r\n",
       "    if (typeof target == 'string') {\r\n",
       "        target = document.querySelector(target);\r\n",
       "    }\r\n",
       "    if (!target) return;\r\n",
       "    var protocol = target.getAttribute('minder-data-type');\r\n",
       "    if (protocol in protocols) {\r\n",
       "        var data = target.textContent;\r\n",
       "        target.textContent = null;\r\n",
       "        km.renderTo(target);\r\n",
       "        km.importData(protocol, data);\r\n",
       "    }\r\n",
       "    km.disable();\r\n",
       "    km.execCommand('hand');\r\n",
       "    km.execCommand('Zoom', 70);\r\n",
       "    setTimeout(function () {\r\n",
       "        km.useTemplate(template || 'default');\r\n",
       "        km.useTheme(theme || 'classic');\r\n",
       "    },\r\n",
       "        0\r\n",
       "    )\r\n",
       "}\r\n",
       "</script>imported assert."
      ],
      "text/plain": [
       "<dmind.mind.Header at 0x216d1af30f0>"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "%dmindheader"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## text 格式"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script id=\"d_6f5ef50c5d14d81fedcf07c81e17670a\" type=\"application/kityminder\" minder-data-type=\"text\">DMind\n",
       "    是一个 jupyter notebook 插件\n",
       "    是一个思维导图插件</script><script>renderMind(\"#d_6f5ef50c5d14d81fedcf07c81e17670a\",\"default\",\"classic-compact\")</script>"
      ],
      "text/plain": [
       "<dmind.mind.Section at 0x216d1d58e48>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "%%dmind text\n",
    "\n",
    "DMind\n",
    "    是一个 jupyter notebook 插件\n",
    "    是一个思维导图插件"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## markdown 格式, 逻辑结构图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script id=\"d_f331161deeb139cc70c5745d79009aa2\" type=\"application/kityminder\" minder-data-type=\"markdown\"># DMind使用文档\n",
       "## 安装\n",
       "### pip install dmind\n",
       "## 使用\n",
       "### 载入插件\n",
       "#### %load_ext dmind\n",
       "### 载入需要的附件\n",
       "#### %dmindheader\n",
       "### 渲染脑图\n",
       "#### %%dmind datatype template theme 换行后输入内容</script><script>renderMind(\"#d_f331161deeb139cc70c5745d79009aa2\",\"right\",\"classic-compact\")</script>"
      ],
      "text/plain": [
       "<dmind.mind.Section at 0x216d1d585c0>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "%%dmind markdown right\n",
    "\n",
    "# DMind使用文档\n",
    "## 安装\n",
    "### pip install dmind\n",
    "## 使用\n",
    "### 载入插件\n",
    "#### %load_ext dmind\n",
    "### 载入需要的附件\n",
    "#### %dmindheader\n",
    "### 渲染脑图\n",
    "#### %%dmind datatype template theme 换行后输入内容"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## json 格式 , 目录组织图, 文艺绿"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script id=\"d_04ecdb80e45f460531eb06ed20a37466\" type=\"application/kityminder\" minder-data-type=\"json\">{\n",
       "    \"root\": {\n",
       "        \"data\": {\n",
       "            \"text\": \"Dmind参数说明\"\n",
       "        },\n",
       "        \"children\": [\n",
       "            {\n",
       "                \"data\": {\n",
       "                    \"text\": \"datatype\"\n",
       "                },\n",
       "                \"children\": [\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"json\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"text\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"markdown\"\n",
       "                        }\n",
       "                    }\n",
       "                ]\n",
       "            },\n",
       "            {\n",
       "                \"data\": {\n",
       "                    \"text\": \"template\"\n",
       "                },\n",
       "                \"children\": [\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"default\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"tianpan\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"structure\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"filetree\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"right\"\n",
       "                        }\n",
       "                    },\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"fish-bone\"\n",
       "                        }\n",
       "                    }\n",
       "                ]\n",
       "            },\n",
       "            {\n",
       "                \"data\": {\n",
       "                    \"text\": \"theme\"\n",
       "                },\n",
       "                \"children\": [\n",
       "                    {\n",
       "                        \"data\": {\n",
       "                            \"text\": \"...\"\n",
       "                        }\n",
       "                    }\n",
       "                ]\n",
       "            }\n",
       "        ]\n",
       "    }\n",
       "}</script><script>renderMind(\"#d_04ecdb80e45f460531eb06ed20a37466\",\"filetree\",\"fresh-green\")</script>"
      ],
      "text/plain": [
       "<dmind.mind.Section at 0x216d1d58b70>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "%%dmind json filetree fresh-green\n",
    "{\n",
    "    \"root\": {\n",
    "        \"data\": {\n",
    "            \"text\": \"Dmind参数说明\"\n",
    "        },\n",
    "        \"children\": [\n",
    "            {\n",
    "                \"data\": {\n",
    "                    \"text\": \"datatype\"\n",
    "                },\n",
    "                \"children\": [\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"json\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"text\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"markdown\"\n",
    "                        }\n",
    "                    }\n",
    "                ]\n",
    "            },\n",
    "            {\n",
    "                \"data\": {\n",
    "                    \"text\": \"template\"\n",
    "                },\n",
    "                \"children\": [\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"default\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"tianpan\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"structure\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"filetree\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"right\"\n",
    "                        }\n",
    "                    },\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"fish-bone\"\n",
    "                        }\n",
    "                    }\n",
    "                ]\n",
    "            },\n",
    "            {\n",
    "                \"data\": {\n",
    "                    \"text\": \"theme\"\n",
    "                },\n",
    "                \"children\": [\n",
    "                    {\n",
    "                        \"data\": {\n",
    "                            \"text\": \"...\"\n",
    "                        }\n",
    "                    }\n",
    "                ]\n",
    "            }\n",
    "        ]\n",
    "    }\n",
    "}"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 通过输入错误的参数值查看参数列表"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "theme not found.<pre>{\n",
       "    \"classic\": \"脑图经典\",\n",
       "    \"classic-compact\": \"紧凑经典\",\n",
       "    \"snow\": \"温柔冷光\",\n",
       "    \"snow-compact\": \"紧凑冷光\",\n",
       "    \"fish\": \"鱼骨图\",\n",
       "    \"wire\": \"线框\",\n",
       "    \"fresh-red\": \"清新红\",\n",
       "    \"fresh-soil\": \"泥土黄\",\n",
       "    \"fresh-green\": \"文艺绿\",\n",
       "    \"fresh-blue\": \"天空蓝\",\n",
       "    \"fresh-purple\": \"浪漫紫\",\n",
       "    \"fresh-pink\": \"脑残粉\",\n",
       "    \"fresh-red-compat\": \"紧凑红\",\n",
       "    \"fresh-soil-compat\": \"紧凑黄\",\n",
       "    \"fresh-green-compat\": \"紧凑绿\",\n",
       "    \"fresh-blue-compat\": \"紧凑蓝\",\n",
       "    \"fresh-purple-compat\": \"紧凑紫\",\n",
       "    \"fresh-pink-compat\": \"紧凑粉\",\n",
       "    \"tianpan\": \"经典天盘\",\n",
       "    \"tianpan-compact\": \"紧凑天盘\"\n",
       "}</pre>"
      ],
      "text/plain": [
       "<dmind.mind.Warner at 0x216d1d58860>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "%%dmind json filetree errortheme\n",
    "\n",
    "查看参数"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
